graph « Criteria « JPA Q&A

1. How to get Object graph with specified criteria

Hi, May be I'm missing something small but spent almost the whole day to figure out my problem. I have an object graph : Object A contains sets of Object B which inturn contains Object C. I could able to get the whole object graph with some criteria mentioned on the hbm.xml file but now I would like to get the ...

2. Object Graph Navigation Through Example.Criteria

In the cat example of hibernate reference, we have a 1 to many association from cat to mates, so my question is what if the mates is a set, and we want to give values of mates and then to retrieve all those mates which are associated with cats through Example.create feature. How can this be done?