thanks Matt. On 3/27/07, Matt Raible <[EMAIL PROTECTED]> wrote:
From the FAQ: http://raibledesigns.com/wiki/AppFuseSupport.html#ref-AppFuseSupport-9Do 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? 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. HTH, Matt On 3/27/07, Richard G. Reyes <[EMAIL PROTECTED]> wrote: > Hi All, > > I am using webwork - appfuse 1.9.4 > > I think I have a fairly complex domain model and I would like to > bypass xdoclet generation and hand code the mapping files myself. I > dont mind digging through the build file, just wonder > if anyone of you guys have the specific ant target names to use to > bypass the xdoclet. > > FYI my current process routine is code then "ant deploy". > > Richard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
