Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Hibernate in Java Question
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="gwoodhouse, post: 4099269"] My understanding is that my HQL will pull back the ProductSession table, which contains a CountedItem. I've specified that session_id is the coloumn where CountedItem is joined to the ProductSession table. I thought that by bringing back ProductSession you would get all of the related CountedItems (In this case its one-to-one)? I could be totally and completely wrong. As i said i'm very new to Hibernate and my book learning is only getting me so far. I've simplified the example above - What the query is doing is using limiters that are only present in the ProductSession table to bring back values located in the CountedItem table. The SQL would have had "WHERE product_session.date > x" for instance (The HQL in the example limiting by date is the only bit of HQL i've been able to steal from other protions of the product that work). [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Hibernate in Java Question
Top