Issue Details (XML | Word | Printable)

Key: HBX-532
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Max Rydahl Andersen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Tools

reverse engineering should consider nullability of column when choosing hibernate type

Created: 08/Jan/06 09:07 AM   Updated: 19/Jan/06 06:23 PM   Resolved: 08/Jan/06 09:10 AM
Component/s: hbm2java
Affects Version/s: 3.1beta3
Fix Version/s: 3.1beta4

Time Tracking:
Not Specified

Issue Links:
Duplicate
 

Participants: Max Rydahl Andersen and tony anecito


 Description  « Hide

if a column is nullable reverse engineering should choose the wrapper types instead of the primitive types for property types; otherwise when loading data and exception will occur.



Max Rydahl Andersen added a comment - 08/Jan/06 09:10 AM

fixed. reverse engineering now takes nullability into account before choosing a hibernate type.


tony anecito added a comment - 17/Jan/06 09:13 AM

Hi Max,

I downloaded the nightly fix after the nightly builds were fixed to run again and the nightly build for the 13th did not work as mentioned here.

Thanks,
-Tony


Max Rydahl Andersen added a comment - 18/Jan/06 02:42 AM

take it from cvs


tony anecito added a comment - 18/Jan/06 09:36 AM

Thanks Max for the reply.

I tried downloading from cvs but error message that there were too many links.

Any ideas what I can do to get past this error messages? Sounds like a problem with the cvs repository but not sure.

Thanks,
-Tony


tony anecito added a comment - 19/Jan/06 06:23 PM

Hi Max,

I was able to download the source and create the jar file but I get the following error when the Ant task to create the hbm is run.

java.lang.ClassCastException: Class cannot be casted to array

Any thoughts why this is happening? The reveng.xml file has no overides in it except to filter some tables.

Thanks,
-Tony