association « DAO « JPA Q&A





1. association mapping problem using DAO    forum.hibernate.org

I have a many to many association between two tables: STUDENT and COURSE. I also have an association table say STUDENT_COURSE which contains sid and cid. I used middlegen to generate the mapping files and persistent class automatically.I get student.class, sc.class and course.class. I also get student.hbm.xml,

2. DAO - Building Associations Query using Criterion..    forum.hibernate.org

Hello Using hib 3.1.2. I am using the generic hiberante dao solution desc here: http://www.hibernate.org/328.html, but am having problems figuring out how to construct a sub query using the convenience method below: Code: /** * Use this inside subclasses as a convenience method. */ @SuppressWarnings("unchecked") protected List ...