I have a database column PARTNER_TYPE of type CHAR(1). The relevant part of entity class looks like this:
private String partnerType; | | @Column(name = "PARTNER_TYPE", length=1) | //@Length(max = 1) | public String getPartnerType() { | return partnerType; | } When I run the program I get the following exception: org.hibernate.HibernateException: Wrong column type: PARTNER_TYPE, expected: varchar2(1 char) Then I tried: @Column(name = "PARTNER_TYPE", length=1, columnDefinition = "CHAR(1)") and I got org.hibernate.HibernateException: Wrong column type: PARTNER_TYPE, expected: CHAR(1) Then I tried: @Column(name = "PARTNER_TYPE", length=1, columnDefinition = "CHAR") and I got org.hibernate.HibernateException: Wrong column type: PARTNER_TYPE, expected: CHAR Any idea? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4004638#4004638 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4004638 _______________________________________________ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user