model « DAO « JPA Q&A





1. ORM model and DAO in my particular case    stackoverflow.com

I have the DB structure as follows: table STUDENT (say, id, surname, etc) table STUDENT_PROPERTIES (say, name_of_the_property:char, value_of_the_property:char, student_id:FK) table COURSE (id, name, statusofcourse_id) table STATUSOFSOMETHING (id, name_of_status:char ('active','inactive','suspended' etc)) table STUDENT_COURSE (student_id,course_id,statusofsomething_id) Let's try to pick ...

2. Business rules: in the model or in DAO?    forum.hibernate.org

Hi, I have a doubt on like implementing a business rule. My use case need retrieve purchase orders that can be modified. The business rule say that a order can be modified if it is opened and his items have pending delivery. I can include a method in the PurchaseOrder's DAO and use HQL to retrieve the orders that satisfy the ...

3. Creating Reusable/Extendable Models and DAOs    forum.hibernate.org

With the latest version of Hibernate... Basically what I am trying to achieve is to create a generic model and DAOs to be extended/used by other projects. For instance every project I work on requires a Member class, Email class and EmailLog class. So rather than me copy/recreate a member's system, e-mail sending/logging system for every project it would be nice ...