[hibernate-issues] [Hibernate-JIRA] Created: (HBX-1155) @Type annotation not generated
Mike Baranczak (JIRA)
noreply at atlassian.com
Fri Dec 4 16:08:08 EST 2009
@Type annotation not generated
------------------------------
Key: HBX-1155
URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1155
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2.4.GA
Environment: Oracle
Reporter: Mike Baranczak
Oracle does not support boolean columns, so we're using a VARCHAR(1) to store either "Y" or "N". This is the situation that org.hibernate.type.YesNoType was intended for. The problem is that hbm2java does not generate a @Type(type="yes_no") annotation on the affected properties; therefore, at run-time Hibernate doesn't know how to translate the values, which causes an error.
This bug was described a while ago:
https://forum.hibernate.org/viewtopic.php?f=6&t=980008&start=0
That thread also includes a work-around which involves using a custom template.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list