AppFuseSupport |
|
| Your trail: |
Difference between
version 116
and
version 115:
| At line 165 added 25 lines. |
| * Do I have to use XDoclet to generate my *.hbm.xml files? Is it possible to override a single hbm.xml file and create it by hand? |
|
| <div style="margin-left: 30px"> |
| If you have an @hibernate.class tag on a POJO - the hibernatedoclet |
| will generate the mapping file into build/dao/gen. If you have a |
| mapping file (*.hbm.xml) file for your POJO in the src/dao/**/model/* |
| directory, it will *overwrite* the generated version. If you don't |
| want to worry about the two conflicting - just remove the @ sign from |
| @hibernate.class in your POJO and put your *.hbm.xml file in the model |
| directory. |
|
| No build.xml modification are need for this to work. The |
| "package-dao" target will include these mapping files: |
|
| {{{ <copy todir="${build.dir}/dao/gen"> |
| <fileset dir="src/dao" includes="**/*.xml" |
| excludes="**/*-${dao.type}.xml"/> |
| <filterset refid="variables.to.replace"/> |
| </copy>}}} |
|
| If you want to get rid of the hibernatedoclet process, you can do that |
| - but make sure and run it first - and then copy all of the generated |
| *.hbm.xml files into your model directory. |
| </div> |
|
Back to AppFuseSupport,
or to the Page History.
|