-->
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.  [ 2 posts ] 
Author Message
 Post subject: Can i have a filter collection?
PostPosted: Tue Sep 04, 2007 12:32 pm 
Regular
Regular

Joined: Wed May 02, 2007 2:42 pm
Posts: 101
Suppose I have a table A (A has a budget column) and table B (B has a price column …)

I also have Object A and Object B. I want that A will have a collection of B that their price is less than A.budget.

Can I do it with JPA?
Can I add or remove element from this collection?


Thank you


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 19, 2007 6:14 am 
Beginner
Beginner

Joined: Thu Jun 17, 2004 10:08 am
Posts: 21
Location: Paris-France
Hello,
As far as i know it is not possible to have filtered collections in JPA but yo ucan use Hiberante fitlers(http://www.hibernate.org/hib_docs/refer ... lters.html).

Hope it helps.
Adrian


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

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.