OK...
EmailMessages.java
Code:
package bizservices.test.model;
import bizservices.framework.model.BaseModel;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;
/**
* Model Class: EmailMessages
* @author HibernateTools3.2.0.b9 12-Oct-2007 9:24:28 AM
*/
@Entity
@Table(name="email_messages"
,uniqueConstraints = @UniqueConstraint(columnNames="EML_MSG_CD"))
@NamedQuery(name = "jpql.EmailMessages.by.uk",
query = "select o from EmailMessages o where o.emlMsgCd = :emlMsgCd")
public class EmailMessages extends BaseModel {
@Id
@Column(name="EML_MSG_ID", unique=true, nullable=false)
private int emlMsgId;
@Column(name="EML_MSG_CD", unique=true, nullable=false, length=30)
private String emlMsgCd;
@Column(name="EML_MSG_SUBJECT", nullable=false)
private String emlMsgSubject;
/**
* Default Constructor
*/
public EmailMessages() {
}
/**
* Minimum Constructor
*/
public EmailMessages(int emlMsgId, String emlMsgCd, String emlMsgSubject) {
this.emlMsgId = emlMsgId;
this.emlMsgCd = emlMsgCd;
this.emlMsgSubject = emlMsgSubject;
}
public int getEmlMsgId() {
return this.emlMsgId;
}
public void setEmlMsgId(int emlMsgId) {
this.emlMsgId = emlMsgId;
}
public String getEmlMsgCd() {
return this.emlMsgCd;
}
public void setEmlMsgCd(String emlMsgCd) {
this.emlMsgCd = emlMsgCd;
}
public String getEmlMsgSubject() {
return this.emlMsgSubject;
}
public void setEmlMsgSubject(String emlMsgSubject) {
this.emlMsgSubject = emlMsgSubject;
}
}
PojoTypeDeclaration.ftl:
Code:
/**
* Model Class: ${pojo.getDeclarationName()}
* @author HibernateTools${version} ${date}
*/
<#include "Ejb3TypeDeclaration.ftl"/>
${pojo.getClassModifiers()} ${pojo.getDeclarationType()} ${pojo.getDeclarationName()} extends ${pojo.importType("bizservices.framework.model.BaseModel")} {
If you need to see more templates, let me know...
By the way, is it possible to attach some file in this forum?
Thanks again!