All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates0.model_ORACLE.tmpl Maven / Gradle / Ivy

Go to download

Assist in generating CRUD code, without limitation on the specific language, as long as you can write velocity templates.

There is a newer version: 1.0.8
Show newest version
/**
 * @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