-->
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: discriminator is repeated along inheritance, how to reuse?
PostPosted: Wed Jan 17, 2007 6:24 am 
Newbie

Joined: Wed Jan 17, 2007 6:00 am
Posts: 1
trying to map a legacy db (sybase, why?), I encountered the following concern:
discriminator is used couple of times along the inheritance, fetched using a formula (sql select something). I don't want to requery using that formula, but to reference that discriminator on the parent.

more detailed:
entitiy A has a discriminator 'Ad' fetched using a formula from another table.
B is a composite of A.
both A,B are not concrete, but C,D respectivly (C inherits A,D inherits B)
thus D is a composite of C, when C is discriminated using 'Ad'.

I want D to be discriminated also using 'Ad', the same way C is, without rewrinting the formula (which might be an expansive sql query) but referencing it from A.

How? have I missed something simple?
/Ron


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.