1. Hibernate POJOs -- association or no-association ? coderanch.comSuppose I have two database tables Course { Course_no(PK), course_name, student_id (FK refers to "Student") } Student { id (PK), name } each student can take many courses so it is a many-to-one relation from "Course" to "Student". Suppose we don't want any delete cascade function being implemented. I am thinking about two ways to use hibernate to implement but not ... |
2. Implementing POJO associations question. forum.hibernate.orgNewbie Joined: Thu Mar 11, 2004 11:20 pm Posts: 9 I read the book Java Persistence with Hibernate. In the section of Implementing POJO associations, it states that one can wrap business function by correlating fucntions between two domain objects. For instance, in the Category - Item relations Code: public void addCategory(Category category) { if (category == ... |
3. HQL - filtering pojo by association's scalar collection elem forum.hibernate.org |