Hi all,
I'm looking for some practical tips using Hibernate and keeping model, config files and sql in sync. Apologies if this has been posed earlier, if so just point me to the message/site.
I'm looking at using the latest release of Hibernate but the question concerns more general practical use.
From what I see there are several ways to generate code/files etc using Xdoclet, Annotaions and xml mapping files. Each probably have their own advantages/disadvantages depending on the situation. But what choices do most people make with a new project? What is leading.
1. In one project the developers were using the xml files as leading. From there both the model and SQL were being generated.
2. In another project I saw developers using XDoclet tags in the code afterwhich one can generate SQL and XML files.
Now I see that it's possible to use Hibernate Annotations but one requires JDK 1.5
My preference would be to model the code add Annotations and from there generate SQL and config files. I don't favour the xml oriented manner but perhaps others do have good experience with this?
Curious to see reactions as *preffered manner of use* pitfalls of one against the other
Colin
|