-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: projection on element collection attribute
PostPosted: Tue Jan 07, 2014 6:13 am 
Newbie

Joined: Tue Jan 07, 2014 6:08 am
Posts: 2
I have a table named "Store" which contains an attribute of type Set listOfItems.This attribute named "listItems" , is annotated with @ElementCollection(fetch= FetchType.EAGER) and @CollectionTable(name="items").
When i am executing projection on this table with the projection property including the attribute items, I am not getting this attribute with the projection.Instead i am getting the Oid of store table assigned as value to attribute listItems.
I captured the sql statement which is getting executed, in this join on the table "items" is not done .
i even tried manual join with crit.setFetchMode("items",FetchMode.JOIN) and captured the sql statements . Even in this the join on the Table is not
Let me know what i am missing .


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.