-->
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: query all joined-subclasses and a property from one subclass
PostPosted: Tue Feb 19, 2008 7:40 am 
Newbie

Joined: Mon Jul 10, 2006 10:21 am
Posts: 12
Hi, i dose not found a solution for my problem, so i post it here.

Here is a simplified version of my mapping:

Code:
<class name="FooBase" table="FooBase">
...
<property name="FooType" column="FooType"/>
<property name="CreationDate" column="CreationDate"/>
...
</class>

<joined-subclass name="Foo1" table="MaFoo1" extends="FooBase">
...
</oined-subclass>

<joined-subclass name="Foo2" table="MaFoo2" extends="FooBase">
...
<property name="ChangeDate" column="ChangeDate"/>
</oined-subclass>

<joined-subclass name="Foo3" table="MaFoo3" extends="FooBase">
...
<property name="ChangeDate" column="ChangeDate"/>
</oined-subclass>


Now wants to query all from FooBase where CreationDate is today epect if the instance is Foo2 then i whant to check if ChangeDate is today.
( The real query is much more complex, so ive extract only my problem )

Lanwin


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.