-->
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: join on subclass of a property class
PostPosted: Tue Oct 17, 2006 11:39 pm 
Newbie

Joined: Tue Oct 17, 2006 11:32 pm
Posts: 3
I have a class "Timelog". This class has a property called "expense". Expense is of type "Expense". The trick is that "Expense" is an abstract class and it has 3 implementations: "Project", "Overhead", and "Maintenance".

Now I have a very simple thing to do. I need to find all the timelogs that have expense of type Maintenance. I would like to do it with the CriteriaAPI. I guess it could be done with a theta-style join but is it possible to do it with the CriteriaAPI?

thanks,

Kirill


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.