Bug 146447 - Generate DAOs
Summary: Generate DAOs
Status: NEW
Alias: None
Product: Dali JPA Tools
Classification: WebTools
Component: JPA (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Neil Hauge CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2006-06-11 19:04 EDT by Gunnar Wagenknecht CLA
Modified: 2011-07-01 16:24 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar Wagenknecht CLA 2006-06-11 19:04:09 EDT
IMHO it would be a good addition to Dali if it could provide DAO generation for entities. The DAO would have simple methods for creating, deleting and saving entities and perform a lookup based on the primary key (#findByPrimaryKey). 

The DAO should also provide simple transaction management and hide the EntityManager/EntityManagerFactory handling by applying IoC technologies.

Later on, Dali could use the information available in NamedQuery annotations to generate even more find... methods. For example, if a NamedQuery "fraudOrders" exists it could generate a method "findFraudOrders".
Comment 1 Neil Hauge CLA 2011-07-01 16:24:34 EDT
Moving JPA specific bugs to new JPA component in bugzilla.