dhartford wrote:
My use-case is indeed to reverse engineer from an existing database schema, to generate the java DTO's without annotations, and soley use orm.xml.
if by DTO you mean the entity then sure; that is doable today.
Quote:
This scenario is extremely useful for Data-Transport Objects in multi-client environments, where if you use an annotation, you may/will need to include the hibernate-annotations.jar for client-code to compile correctly. By using orm.xml and no annotations, you can safely avoid this scenario.
well, i fail to see how depending on hibernate-annotations.jar at compile time is bad when you definitly need it at runtime if you are going to use Hibernate/JPA.
Quote:
The most recent/popular use-case client for this is GWT (1.4) where the client does not support annotations at all. This approach has proven to work great, just automation is difficult with the hibernate tools, but is possible with the OpenJPA tools.
Automatiation ? You wan't to rely on purely reveng code ? Not good imo ;)
But anyhow, you are saying that openjpa tools supports generating orm.xml's ? Interesting. Feel like contributing something like that to hibernate tools ?
Quote:
Other scenarios are Eclipse RCP, or even Swing applications written to run on older JDK (as old as JDK 1.3 actually).
Using retroweaver should be a possibility here..
Quote:
Yes, you can say wait for GWT 1.5, but that does not solve the problem of supporting orm.xml implementations and other client technologies that may not like or appreciate annotations.
I understand your usecase but I do not understand why blind reverse engineering is ok by you...