dto « DAO « JPA Q&A





1. DAO pattern when using hibernate    stackoverflow.com

We use hibernate in our application and like to use DAO pattern to implement the data layer of application. I have seen some suggestions on using ValueObjects/DTOs to return data from ...

2. Hibernate annotations and DTOs    stackoverflow.com

I have a design question about the use of Hibernate annotations and DAO pattern. The DTO are supposed to represent entities of the data model. The DAOs are interfaces that define ...

3. Do I need DTOs for my DAOs?    forum.hibernate.org

I'm building a data services layer for a multitier application. A DAO model will be used to map between domain objects and the database and hibernate is the engine. I can't figure out how to get hibernate to retrieve the keys instead of the actual referenced objects. Perhaps if I want to return only references to the caller in the other ...

4. many to one using DAOs and DTOs?    forum.hibernate.org

when i was young (1,5 year ago), i used DTO.... forget it, it is much simplier to run with your persistent objects. Using DTO can be usefull if you are working with a rich client, if it is a webapp, forget DTO. You can use DAO, that's very usefull to isolate all query stuff, easier to read, maintain and reuse inside ...