-->
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.  [ 5 posts ] 
Author Message
 Post subject: code generation and inheritance
PostPosted: Thu Jul 06, 2006 10:51 am 
Newbie

Joined: Thu Jul 06, 2006 9:54 am
Posts: 8
hi
i have been used hibernate for a couple of days and i need your help as quickly as you can, i got a trouble generating the code from an existing database this is : i have a hierarchy of classes and when i make de code generation hibernate take them as separated classes (the child containing the father) and thd hbm file is like other and no as the documentation says that is used one of three strategy of mappinfg inheritance

i hope you can help me


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 06, 2006 10:21 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The database reverse engineering module does not (currently) support building any inheritence structures for you. Use the resulting output and customise it as you require.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 12:06 am 
Newbie

Joined: Thu Jul 06, 2006 9:54 am
Posts: 8
ok thanks but the work is pretty hard because the hierarchy is pretty huge can you suggest me any thing else that make my work easier?


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:19 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
write the mappings your self (optionally inspired from the generated mappings files) if you want to use inheritance and other fancy ORM constructs.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 07, 2006 3:22 am 
Newbie

Joined: Thu Jul 06, 2006 9:54 am
Posts: 8
i gonna do it in this way but it pretty hard

thanks you max and david


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.