-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: Inheritance in reverse engineering
PostPosted: Fri Nov 02, 2007 9:41 am 
Newbie

Joined: Fri Nov 02, 2007 9:28 am
Posts: 8
version: Hibernate Core Plugin 3.2.0.beta11

Hi,

i'm using Hibernate Tools to reverse engineer to produce EJB3 POJOs with JTA annotations. Is it (currently) possible to provide Hibernate Tools with inheritance information during the reverse engineering process, either through the hibernate.reveng.xml or perhaps by implementing a custom strategy? i'm trying to generate POJOs with the
@Inheritance(strategy=InheritanceType.XXX )Tags.

Thank you in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Nov 02, 2007 6:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Nope

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 05, 2007 6:10 am 
Newbie

Joined: Fri Nov 02, 2007 9:28 am
Posts: 8
thank you Max for the prompt reply.

is there any way to get the "@Inheritance(strategy=InheritanceType.XXX) Tags" generated at all? it really doesn't matter if its not "intelligently" generated. for example maybe i can provide the list of inherited classes in a reverse engineering strategy for which the tag string can be generated into the classes?

how was this generated anyway? http://forum.hibernate.org/viewtopic.php?t=956064

is there any way to add any ejb3 annotation tag through a custom reverse engineering strategy?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Nov 05, 2007 12:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that forum posting could only be generated if done via hbm.xml with preexisting inheritance specified.

And no - the current JDBCBinder code does not handle inheritance.


About inserting additional code then copying the relevant templates and adjusting/adding the relevant code is the way forward....

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 06, 2007 1:52 pm 
Newbie

Joined: Fri Nov 02, 2007 9:28 am
Posts: 8
Thanks for pointing me in the right direction Max. Where can i find the templates which are used by the version i am using?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Nov 07, 2007 5:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
in hibernate-tools.jar

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.