To manage synchronization between the Java persistent objects (simple POJOs) and the mapping (hbm) files, I know I have a choice between using CodeGenerator to generate beans from the mapping files or using XDoclet to generate hbm files from the Java classes.
For my particular case, either of two can be made to work, but I'm leaning towards using XDoclet to generate hbm files, because it seems less Hibernate-centric way of achieving the same end result.
Can anyone shed some light on the pros and cons of each, and provide some sound recommendations?
|