d10n2000 wrote:
For a composite PK, Hibernate will create an identifer field called "compId".
Is it *possible* to access the field inside that "compId".
This HQL will *work* because I go through "compId" first:
select registrationItem "
from RegItem registrationItem
where registrationItem.compId.actvGrpId_ = '10002' "
So.. is my attempt to bypassing "compId" is possible by any workaround?
You can acces all fields inside your composite-id using either composite-id name, in your case it is "compId" or standard "id" name, try this:
Code:
from RegItem registrationItem
where registrationItem.id.actvGrpId_ = '10002'