Generic CRUD service AKA DAO – EJB 3.1/0 code – only if you really needed
Luxoft Training offers you to read an interesting state from a blog of a Java ambassador Adam Bien.
The term Data Access Object (DAO) is actually wrong. An object has state and behavior, and the behavior even can depend on the state. DAO is stateless, only only consists of data manipulation operations. Data Access Procedure (DAP) would be a more exact term. A Data Access Service, or "CRUD Service" would be a better, and even buzzword-compatible, term.
From the article you will know the parameter construction, the query-construction and other really interesting things. Read more here.
Also we are glad to invite you to Online-training by Adam Bien “Java EE 7 Testing, Deployment, Automation and Code Quality”.