MyEclipse: Code Generation - Create Hibernate Mapping
joeursula - Jul 12, 2005 - 04:20 PM
Post subject: Code Generation - Create Hibernate Mapping
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?
support-rkalla - Jul 12, 2005 - 04:27 PM
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.
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits