I'm building an application using a JPA object model, and creating several Data Access Objects to interact with that model. I'm finding that I'm repeating a lot of code (essentially CRUD) between different Data Access Objects. The only thing that differs are the targeted JPA classes.
I was wondering if anybody knows of an abstraction library that could be used with any JPA model and would produce the necessary DAOs (or CRUD operations). Supporting of course all the One-to-one, One-to-many, Many-to-one and Many-to-many relations.
Thanks
PS - Do you know of such a library even if it is not for JPA models?