This week's book giveaway is in the
We're giving away four copies of a choice of
"Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac"
and have Joe Kissell on-line!
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Take Control of Upgrading to Yosemite
Take Control of Automating Your Mac
this week in the
EJB and other Java EE Technologies
Using fetch all properties on Hibernate Query
Joined: May 03, 2006
Oct 30, 2007 04:22:00
I'm trying to write a generic method that receives as argument a class and his primary key, and constructs a Select with fetch all properties.
this with a simple example.
I have an entity AdmLanguage that have a
. LAZY) relationship with a entity AdmResources.
I'm writing the query:
SELECT t FROM AdmLanguage t FETCH ALL PROPERTIES WHERE t.languageid = 1
I'm getting the result query:
select admlanguag0_.languageId as languageId12_, admlanguag0_.description as descript2_12_, admlanguag0_.languageCode as language3_12_
from ADM_Language admlanguag0_
Shouldn't this "Fetch All properties" take all the resources associated to the language either?
subject: Using fetch all properties on Hibernate Query
SQL How to not select the record
OneToMany not by ID
Eager Fetching a Polymorphic SET
JPA - getSingleResult Error
How to join two tables on columns that have different names?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014