• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EclipseLink, Query-By-Example for Entilty with One-To-Many relationship

 
siv sanny
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I ma using EclipseLink 1.2, I wanted to know how to use Query-By-Example for One-To-Many relationship ?

I have two entities ResultGroup and CssObject.
ResultGroup has a unidirectional one-to-many relationship with CssObject. I want to find all the group objects that match a condition on child CssObject.



This code returns all group objects. am I doing something wrong ? How can I make it return only those objects that satisfy the specified condition ?

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic