templates.Jpa.tmpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of coder-maven-plugin Show documentation
Show all versions of coder-maven-plugin Show documentation
Assist in generating CRUD code, without limitation on the specific language, as long as you can write velocity templates.
/**
* @author: ${author}
* @version: 1.0
* @since ${date}
*/
package ${packagePrefix}.dao;
import java.util.List;
import java.util.Collection;
import ${packagePrefix}.domain.${className};
#if($pkResult.size()>1)
import ${packagePrefix}.domain.${className}.PK;
#end
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
public interface ${className}Dao extends JpaRepository<${className} ,
#if($pkResult.size()>1)
${className}.PK
#else
${keyType}
#end > {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy