aspose file tools
The moose likes Object Relational Mapping and the fly likes How to check availability of one set in another? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "How to check availability of one set in another?" Watch "How to check availability of one set in another?" New topic
Author

How to check availability of one set in another?

Dmitriy Kastikovich
Greenhorn

Joined: Jun 29, 2008
Posts: 22
Hi!

I have unidirection manyToMany:



From another side I have a List<Day> workingDays and how can I get all Markets, where list of days contains all from workingDays?

Thanks.
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 550
What do you mean by,

"another side I have a List<Day> workingDaysÈ

What is workingDays an attribute of? Or is it an argument?

In general an ALL OF type of query will used a NOT EXISTS and a sub-SELECT,

i.e.



TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: How to check availability of one set in another?
 
Similar Threads
how to find number of sundays and saturdays between two dates
Hint on how to represent jave Object with two relation tables
EJB QL w/ ManyToMany
EJB 3.0 and manytomany, how to create
Calculating no. of working days between tow dates