@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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira