Skip to content

Instantly share code, notes, and snippets.

@christophe-dooapp
Created August 21, 2013 21:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christophe-dooapp/6300613 to your computer and use it in GitHub Desktop.
Save christophe-dooapp/6300613 to your computer and use it in GitHub Desktop.
@Entity
public class Person{
@OneToMany(Fetch=FetchType.EAGER)
private List<Child> person;
}
db.selectFrom(PERSON);//select * from Person, Child WHERE Person.id=Child.Person.Id
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment