subset « Load « JPA Q&A





1. JPA 2.0: Load a subset of fields for an entity    stackoverflow.com

I have an Entity named address. The address Entity has several fields, one of which is CITY. I've created a query by calling entityManager.createQuery but my query only includes the CITY ...

2. Loading only subset of collection, how to ?    forum.hibernate.org

Hi there, suppose I have object Calendar which contains collection of CalendarItem. Every CalendarItem is valid at one dat. Possibly the Caledar object have many CalendarItems (lets say 1000+). Now I'm using commong mapping one-to-many from Calendar to CalendarItem. This works fine. But the question is, if there is possibility to limit the set of CalendarItems that are loaded by Calendar ...

3. Need a definitive answer on loading a collection subset    forum.hibernate.org

Hi, I've been around this block a couple hundred times now, and I still can't make it work. Maybe it's not possible with Hibernate - could someone answer this one for me? Here's the db model (tables): PARENT - CHILD - GRAND_CHILD Here's the data: PARENT: parent_id=0 CHILD: child_id=0, parent_id=0 CHILD: child_id=1, parent_id=0 GRAND_CHILD: grand_child_id=0, child_id=0 <<< looking for this one ...

4. Need a definitive answer on loading a collection subset    forum.hibernate.org

Hi, I've been around this block a couple hundred times now, and I still can't make it work. Maybe it's not possible with Hibernate - could someone answer this one for me? Here's the db model (tables): PARENT - CHILD - GRAND_CHILD Here's the data: PARENT: parent_id=0 CHILD: child_id=0, parent_id=0 CHILD: child_id=1, parent_id=0 GRAND_CHILD: grand_child_id=0, child_id=0 <<< looking for this one ...

5. Need a definitive answer on loading a collection subset    forum.hibernate.org

Hi, I've been around this block a couple hundred times now, and I still can't make it work. Maybe it's not possible with Hibernate - could someone answer this one for me? Here's the db model (tables): PARENT - CHILD - GRAND_CHILD Here's the data: PARENT: parent_id=0 CHILD: child_id=0, parent_id=0 CHILD: child_id=1, parent_id=0 GRAND_CHILD: grand_child_id=0, child_id=0 <<< looking for this one ...

6. Need a definitive answer on loading a collection subset    forum.hibernate.org

Hi, I've been around this block a couple hundred times now, and I still can't make it work. Maybe it's not possible with Hibernate - could someone answer this one for me? Here's the db model (tables): PARENT - CHILD - GRAND_CHILD Here's the data: PARENT: parent_id=0 CHILD: child_id=0, parent_id=0 CHILD: child_id=1, parent_id=0 GRAND_CHILD: grand_child_id=0, child_id=0 <<< looking for this one ...