Unexpected end of Tree: searching a collection of @embeddable entities

30 views
Skip to first unread message

Derrick Kwagala

unread,
Feb 28, 2013, 10:52:43 AM2/28/13
to java-gen...@googlegroups.com
hi all,
at first the problem seemed basic but its taken alot of my time.

David Wolverton

unread,
Feb 28, 2013, 12:00:26 PM2/28/13
to java-gen...@googlegroups.com
I think the problem here is probably that the genericdao framework is not able handle the @ElementCollection case. I didn't think of this case before. Thanks for bringing it up. Perhaps I can add it to the framework in a future release.

In the mean time, write your method to use native Hibernate querying. You can get the Hibernate session directly in your DAO using getSession(). When you get it working, please update this thread with the HQL query that were able to get working. I can use that to figure out a way to build the capability into the framework.

Thanks.

-- David



--
You received this message because you are subscribed to the Google Groups "java-generic-dao" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-generic-d...@googlegroups.com.
To post to this group, send email to java-gen...@googlegroups.com.
Visit this group at http://groups.google.com/group/java-generic-dao?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Derrick Kwagala

unread,
Mar 1, 2013, 6:24:42 AM3/1/13
to java-gen...@googlegroups.com
Hullo David, 
thank you for the feedback, 
I'm using the jpa genericdao (com.googlecode.genericdao.dao.jpa.GenericDAO) and unfortunately I'm not able to access the Hibernate session in the DAOs.
kindly recommend a workaround this. 
regards
Derrick Kwagala

David Wolverton

unread,
Mar 1, 2013, 8:51:20 AM3/1/13
to java-gen...@googlegroups.com
In that case, use the em() method to access the EntityManager.
Reply all
Reply to author
Forward
0 new messages