facebook

Code Generation – Create Hibernate Mapping

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #232797 Reply

    joeursula
    Member

    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?

    #232800 Reply

    Riyad Kalla
    Member

    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.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Code Generation – Create Hibernate Mapping

You must be logged in to post in the forum log in