templates.model_ORACLE.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}.model;
import ${packagePrefix}.model.base.Base${className};
import javax.persistence.Entity;
import javax.persistence.Table;
#if($pkResult.size()>1)
import ${packagePrefix}.model.${className}PK;
#else
import javax.persistence.SequenceGenerator;
#end
@SuppressWarnings("serial")
@Entity
@Table(columnName = "$TABLE_NAME")
#if($pkResult.size()==1)
@SequenceGenerator(columnName = "${TABLE_NAME}_SEQ", sequenceName = "SEQ_${TABLE_NAME}_ID" ,allocationSize=1)
#end
public class ${className} extends Base${className} {
public ${className} (){
super();
}
public ${className} (${keyType} ${keyVar}){
super(${keyVar});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy