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
joeursula
5 Post subject: Code Generation - Create Hibernate Mapping  PostPosted: Jul 12, 2005 - 04:20 PM
Registered Member
Registered Member


Joined: Jul 11, 2005
Posts: 1

Hi folks,

i use the 'create hibernate mapping' functionality from the db browser to create the *.hbm.xml and the *.java - files.

i use DB2. In the generated *.hbm.xml files the property 'schema' is missing in the 'class' tag.

MyEclipse generates a Key class for composite id's. These generated classes have only the default constructor. i would prefer a second constructor consisting of all the parameter of the composite id.

Can i change the way MyEclipse generates the *.hbm.xml and the *.java - files?
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject:   PostPosted: Jul 12, 2005 - 04:27 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Joe not currently, but you can implement your custom constructor in the conrete subclass of the generated mapping files, it will never be regenerated, just the base abstract class is regenerated.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
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