I’m looking for a Generic DAO implementation in Hibernate that includes parent/child relationship management (adding, removing, getting children, setting parents, etc).
Actually the most used generic DAO on the web is the one I found on jboss.org.
And also, i was looking for some DAO/DTO sample implementations and design patterns.
Do you know some good resources out there?
I would keep the parent/child links management at the entity level (not all entities have parent/childs) but I would create link management methods on them to set both sides when working with bi-directional links as described in 1.2.6. Working bi-directional links.
There are several projects with samples on Google code. I’d suggest to check: