- The xml files concisely document the DB structure, without being intermingled with the java code. OTOH the annotations provide a great way to keep classes and their DB representations in step. If I get xml from annotations, best of both worlds.
(BTW, I'm using java SE not EE and the DB is not usually a fixed server, it runs in an appliance.)
- would allow me the option to revert to an earlier hibernate version if necessary. With annotations in I can't go any earlier than 3.1.
- there may be cases where the schema info is needed in non-java code, prior to DB creation. Ideally in this case I'd provide the xml.
It seems such a tool doesn't exist ... my circumstances are probably atypical, perhaps very few people want it.
|