-->
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.  [ 1 post ] 
Author Message
 Post subject: Inheritance for a set of common parameters
PostPosted: Mon Nov 10, 2008 6:43 pm 
Newbie

Joined: Fri Sep 28, 2007 7:40 pm
Posts: 9
Hi,

We are having INSERTED_BY, INSERTED_DT, UPDATED_BY and UPDATED_DT plus few other parameters which are common across all of our tables in the database. To handle all these parameters, we have an abstract base class and all our domain classes extend from this base class.

Is it possible to define one common hibernate mapping file for this parameter associated with that abstract class and skip these common parameter mapping in rest of the child classes.

If Yes, can you please provide me the syntax for both parent and child class mapping.

p.s: I went thru hibernate documentation and it states for per table, I was not sure if the above can be done. Hence, checking with you Hibernate experts.

Thanks in advance for your help.


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

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.