[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Hibernate Type Mapping to char(2) Error
bongosdude
do-not-reply at jboss.com
Thu Oct 11 20:51:40 EDT 2007
I re-post the issue here from jboss-seam forum. I have just begun to explore jboss-seam. I read Yuan's book and seam docs. And I began to reverse-engineer my project dev database. Seam-gen generates codes with few minor problems. I deployed the generated EAR file to my jboss, Jboss complains that a field with char(2) should be varchar(2). The code is generated with the JPA / Hibernate annotation as:
@Column(name = "firmware_image_type", nullable = false, length = 2)
@NotNull
@Length(max = 2)
public String getType() {
return this.type;
}
public void setType(String type) {
this.type = type;
}
What would I do to overcome this problem without to alter the datatype on the column type to varchar(2)
-B
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094322#4094322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094322
More information about the jboss-user
mailing list