-->
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.  [ 2 posts ] 
Author Message
 Post subject: Is it possible to have one ID mapping for all classes?
PostPosted: Thu Aug 18, 2005 8:24 am 
Newbie

Joined: Wed Nov 10, 2004 11:25 am
Posts: 11
Hibernate version:
2.8

Hello. Is there a way to specify mapping for a super class of any class that I'll have that will contain ID mapping (and possibly another property that all classes will have).
And to specify in mapping of other classes to use mapping for ID of there super class?

I've found <subclass> and <joined-subclass>, but don't help as super class, subclass and joined-subclass are mapped on one table (subclass) or there should be a separate table that stores ID of a class (joined-subclass)

_________________
Vladimir
www.devitnow.com


Top
 Profile  
 
 Post subject: Re: Is it possible to have one ID mapping for all classes?
PostPosted: Thu Aug 18, 2005 9:05 am 
Expert
Expert

Joined: Mon Feb 14, 2005 12:32 pm
Posts: 609
Location: Atlanta, GA - USA
volod wrote:
Hibernate version:
2.8

Hello. Is there a way to specify mapping for a super class of any class that I'll have that will contain ID mapping (and possibly another property that all classes will have).
And to specify in mapping of other classes to use mapping for ID of there super class?

I've found <subclass> and <joined-subclass>, but don't help as super class, subclass and joined-subclass are mapped on one table (subclass) or there should be a separate table that stores ID of a class (joined-subclass)


I'm pretty sure there isn't.

_________________
Preston

Please don't forget to give credit if/when you get helpful information.


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