1. Hibernate - Return collection of entities by ID knowing only the class stackoverflow.comHow do I load a collection of entities of a given class, with only a single trip to the database, e.g.:
I know that if I were ... |
2. Get IDs out of Uninitialized Persistent Collection stackoverflow.comI have a situation that I have not found an answer to when looking through the Hibernate API documentation or on SO. We have a disconnected setup, and we send entities and ... |
3. add ids to collection forum.hibernate.orgSuppose there are two classes, A and B, 1-N related. I've loaded A object and want to add some B objects to collections. Data for these objects is in database, i know ids of these objects. is there any way to add them to the collection without loading all of them from DB? |
4. retrieving a collection from database by ID of FK forum.hibernate.orgI've been trying different ways to do this, but just can't seem to figure it out. I have two different objects, represented in this way ... Parent - FoodGrpLst Child - FoodSubGrpLst The mapping files for these classes is as follows.. for FoodGrpLst... |
5. Populate a collection by only setting element IDs forum.hibernate.orgMy object A has a Set of object B. All my Bs are created first, and as I create each object A, I populate the set with the appropriate Bs (there's usually only one). I already know the ID of the B object I want to add to the set, so is there anyway to avoid loading the B from the ... |