I have the following questions concerning code generation for Hibernate annotated DTO/DAO-s:
-
Is it possible to use a reverse-engineering tool such as hibernatetool to generate DTO/DAO-s along with annotations (as opposed to the xml configuration, I have seen working).
-
If there is such a tool, is there a Maven plugin which can be used as well?
-
If Hibernatetool only supports xml based configuration (and there is no other tool which can generate annotated classes), why doesn’t hibernatetool support this, if the framework has already
been supporting annotations for such a long time?
I know there are tons of code generators out there (from sql4java to oAW and firestorm). But I am looking for a good code generator that can produce DTO/DAO-s from an existing database, instead of having to use UML for this. If this generator can produce Spring configurations as well, it would be great.
Thanks for your time,
Martin
Not sure what you mean by reverse eng in this context but Spring-Roo does every thing that you seem to be needing .Spring-Roo generates complete boiler plate code including DAO .