At line 8 changed 5 lines. |
*[5] Database Questions and HowTos |
*[6] Application Server Questions and HowTos |
*[7] Using Anthill and CruiseControl |
*[8] Hibernate Specific Questions |
*[9] Archived Questions |
*[5] JSF Specific HowTos |
*[6] Database Questions and HowTos |
*[7] Application Server Questions and HowTos |
*[8] Using Anthill and CruiseControl |
*[9] Hibernate Specific Questions |
*[10] Archived Questions |
At line 85 changed 2 lines. |
this problem. |
'' |
this problem.'' |
At line 88 changed 1 line. |
!!Database Specific [#5] |
!!JSF Specific [#5] |
* I get an "Couldn't find template: /home/mats/myapp/metadata/templates/struts_form.xdt" when I run "ant setup test-all" after specifying "jsf" as web framework when running "ant new". |
;:''This is caused by the failure of JSF to install. Start with a version that has [JSF pre-installed|https://appfuse.dev.java.net/files/documents/1397/37690/appfuse-jsf-1.9.3-src.zip].'' |
|
!!Database Specific [#6] |
At line 140 changed 1 line. |
!!Application Server Specific [#6] |
!!Application Server Specific [#7] |
At line 150 changed 1 line. |
!!Continuous Integration [#7] |
!!Continuous Integration [#8] |
At line 154 changed 1 line. |
!!Hibernate Specific Questions [#8] |
!!Hibernate Specific Questions [#9] |
At line 165 changed 1 line. |
!!Archived Questions (no longer relevant) [#9] |
* __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 - 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> |
|
!!Archived Questions (no longer relevant) [#10] |