1. Cannot execute fetch join in single SQL-query forum.hibernate.orgNewbie Joined: Sat Jan 01, 2011 5:43 pm Posts: 4 Hello, I'm a newbie :) Help me please to solve my problem. I am using JPA2 with Hibernate 3.3.0-SP1 implementation. There are 2 entities: CdsVehicleIdentify and Vehicle with one-to-one relationship to each other. Here is the code: Code: public class Vehicle implements Serializable { private static final ... |
2. fetching 1-to-many in a single query forum.hibernate.orgHi, I have a one-to-many relationship as described in [url]http://forum.hibernate.org/viewtopic.php?p=2177261#2177261 [/url] I want to fetch all Departments for a location. I do this by Code: public Collection findByLocation(String location){ ArrayList departments = new ArrayList(); Session session = null; try { ... |
3. Single outer join fetch for collection forum.hibernate.orgAre there any plans to support more than one outer join fetch for collections in HQL? Are there any existing references on why this limitation exists? Is it a SQL thing? Just curious why this limitation exists, and if it is planned to be removed, or if there is some fundamental problem (i.e., SQL limitation, not logical, etc.). Thanks, Justin |
4. fetching single row using hibernate forum.hibernate.org |
5. Fetching one-to-one properties with a single select forum.hibernate.orgHello! I have created a query like this: "from VirtualAsset va " + "inner join fetch va.currency " + "inner join fetch va.extendedCashFlow " + "inner join fetch va.extendedCashFlow.contract " + "where va.extendedCashFlow.contract.portfolio = :portfolio " + "order by va.extendedCashFlow.contract.objId" The contract has some one-to-one associations. I tried some suggestions to avoid lazy loading of these associations. But no one was ... |
6. Fetch many in a single select forum.hibernate.orgGood day. I am working to introduce Hibernate to an organization that is big into stored procedures and writing out all of the SQL. That said, they are looking at Hibernate very closely and picking out everything. While viewing the SQL trace our DBA has noticed that when doing a select for a one to many relationship, its doing a single ... |