-->
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: Defining temporal filtering with table per subclass strategy
PostPosted: Fri Jul 03, 2009 7:02 am 
Newbie

Joined: Sun Apr 12, 2009 4:43 am
Posts: 11
Hi
I want to define some temporal filters so that I can retrieve the state of my data at a point in time. With a parent object and child collection objects, this seems to mean defining a many-to-many mapping (instead of one-to-many) to describe the relationship.
Then presumably I can create a new parent record every time the parent is updated or a new child record every time a child is updated and avoid data duplication whilst at the same retrieving only the subset of child records relevant at a particular point in time.
What I dont understand is how this would work with a table per subclass mapping (superclass data in Table A, subclass data in Table B). Would I now need to define a many-to-many mapping also between superclass and subclass - this seems wrong. Do I create a new record of B only when B is updated, or do I create both A and B to be consistent?
Will I need to abandon table per subclass? That seems quite limiting.
thanks, Baljeet.


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.