MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
meuser
Post subject: Problem with datatype of generated Java class  PostPosted: Oct 29, 2004 - 06:33 PM



Joined: Oct 29, 2004
Posts: 1

Hello,

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,
 
 View user's profile Send private message  
Reply with quote Back to top
support-jeff
Post subject:   PostPosted: Nov 09, 2004 - 11:40 PM
Moderator
Moderator


Joined: Jul 18, 2004
Posts: 357

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.

_________________
jeff
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits