Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

siv sanny
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ?

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!