Visual Paradigm Logo
     Build Quality Applications Faster, Better and Cheaper
 
Home | Products | Download | Documentation | Support | Resources | Partners | Quick Tour | Shop | Company |  
 
   Visual Paradigm Discussion Forum
  Login   [ Register ] Email: Password: Log me on automatically I lost my password  
Recent Topics
Advanced Search
Is there a way to generate an hbm.xml for each subclass?  
Forum Index -> DB Visual ARCHITECT (DB-VA)
Author Message
screagan


Joined: 2007/06/21
Messages: 3

Offline

I have a model in which I have a class A with multiple subclasses (B, C, D). I use table-per-subclass OR mapping strategy to map each of these classes to entities TableA, TableB, TableC, TableD.
When I generate code (POJOs) I get the 4 classes A.java, B.java, C.java, D.java generated, but only 1 hibernate mapping file (hbm.xml) A.hbm.xml.

Is there a way so that I can generate more than one hbm.xml file for a class hierarchy? I would like to generate 4 hibernate mapping files.
This is important so that when one of the sub-classes is further extended, lets say Z extends B, I only need to worry about adding the new Z.java class and new Z.hbm.xml class instead of modifying the one big hibernate mapping file that is generated now.

 
LilianWong


Joined: 2008/02/22
Messages: 452

Offline

Hi screagan,

Thanks for your post. We are sorry that currently we do not support generating hbm.xml files for each class, but we will consider to support it. Once there is any news about this issue, I'll come back to you immediately.

If there are any inquiries, please do not hesitate to contact me.

Best regards,
Lilian Wong
 
LilianWong


Joined: 2008/02/22
Messages: 452

Offline

Hi screagan,

Regarding to the generating separating hbm.xml files for classes, we decided to support it in VP Site 3.3 SP1 (DB-VA 4.3 SP1) which will be released around September. Once the feature is available, I'll come back to you immediately.

Best regards,
Lilian Wong
 
 
   Forum Index -> DB Visual ARCHITECT (DB-VA)
Go to:   
Powered by JForum 2.1.4 © 2005 - Rafael Steil