MyEclipse: Problem with datatype of generated Java class
meuser - Oct 29, 2004 - 06:33 PM
Post subject: Problem with datatype of generated Java class
I'm new to both Hibernate and MyEclipse.
At the moment I got some generated Java class, however, some datatype in generated class does not compatible with my database (PostgreSql). As the result, I cannot test generated class by using Hibernate IDE.
One concrete example is that MyEclipse generates Java.lang.Byte for boolean type of PostgreSql. Is there any way to overcome this problem?
Thanks in advance,
support-jeff - Nov 09, 2004 - 11:40 PM
Currently there is not a work-around except to manually modify the generated mapping and java class files. Be warned that if you attempt to re-generate mappings and classes from the database your changes will be lost. Alternately, you could add wrapper methods in the generated subclass (which is not regenerated further after the first time) to turn the bytes into booleans. Future enhancements to the tooling will support more flexibility in the types used to map to the db.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits