|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
How to download fix for component prefix?I am using xdoclet-2.0.6.jar and xdoclet-plugin-hibernate-1.0.4.jar but I am still experiencing problems with the prefix tag of hibernate.component. I can see this has been fixed (XDP-62) but I am not sure where to get that fix. Do I need to download the source and build it myself, or can I pull a working jar from somewhere?
Sorry if this is a stupid question, but I have done multiple searches and I can't find an answer. Thanks, Gene. |
|
|
Re: How to download fix for component prefix?----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Wed, 10/1/08, meanone <oswald_consulting@...> wrote: > From: meanone <oswald_consulting@...> > Subject: [xdoclet-user] How to download fix for component prefix? > To: user@... > Date: Wednesday, October 1, 2008, 4:58 PM > I am using xdoclet-2.0.6.jar and > xdoclet-plugin-hibernate-1.0.4.jar but I am > still experiencing problems with the prefix tag of > hibernate.component. I > can see this has been fixed (XDP-62) but I am not sure > where to get that > fix. Do I need to download the source and build it myself, > or can I pull a > working jar from somewhere? > > Sorry if this is a stupid question, but I have done > multiple searches and I > can't find an answer. http://dist.codehaus.org/xdoclet-plugins/jars/ meanwhile we are at 1.0.5-SNAPSHOT which is available from maven repository on codehaus: http://snapshots.repository.codehaus.org/org/codehaus/xdoclet/xdoclet-plugin-hibernate/1.0.5-SNAPSHOT/ regards, --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
|
Re: How to download fix for component prefix?Thank you! I am now using the latest version of xdoclet-plugin-hibernate-1.0.5.jar and xdoclet-2.0.7.jar. Still I don't see the fix. This is my code: /** * . * * @hibernate.component * prefix="tms_" */ public ComponentReceipt getComponentReceipt() { return iComponentReceipt; } Here is my ant task: <target name="build.xdoclet.hibernate" depends="build.conf.prop.build" description="Generate Hibernate config from XDoclet tags in java src"> <taskdef name="xdoclet" classname="org.xdoclet.ant.XDocletTask"> <classpath> <fileset dir="lib/xdoclet" includes="*.jar"/> <fileset dir="lib/commons" includes="*.jar"/> <fileset dir="lib/jaxen" includes="*.jar"/> <fileset dir="lib/dom4j" includes="*.jar"/> </classpath> </taskdef> <xdoclet verbose="true"> <!-- defines the file handled by xdoclet2 --> <fileset dir="src/java/core" includes="**/model/**/*.java"/> <fileset dir="src/java/harvester" includes="**/model/**/*.java"/> <fileset dir="src/java/store" includes="**/model/**/*.java"/> <!-- defines the processing of a plugin --> <component classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" destdir="build/hibernate" version="3.0" /> </xdoclet> </target> This is from the resulting hbm.xml: <component name="componentReceipt"> <property name="datetime"/> <property name="source"/> <property name="sourceDatetime"/> <property name="foreignId"/> </component> I am expecting the datetime, source, sourceDatetime, and foreignId fields to be prefixed with "tms_". Any idea what I am doing wrong? Gene. |
|
|
Re: How to download fix for component prefix?I also would specify columnt name - it apperars that it is necessary
to do this ( that's how we designed it ) You may also look into sample ( actuall unit test - org.xdoclet.plugin.hibernate.pojo.ComponentMapping ) and corresponding control mapping in plugin sources for inspiration. regards, ----[ Konstantin Pribluda http://www.pribluda.de ]---------------- JTec quality components: http://www.pribluda.de/projects/ --- On Wed, 10/1/08, meanone <oswald_consulting@...> wrote: > From: meanone <oswald_consulting@...> > Subject: Re: [xdoclet-user] How to download fix for component prefix? > To: user@... > Date: Wednesday, October 1, 2008, 6:26 PM > Konstantin Priblouda wrote: > > > > > > meanwhile we are at 1.0.5-SNAPSHOT which is > available from maven > > repository on > > codehaus: > > > http://snapshots.repository.codehaus.org/org/codehaus/xdoclet/xdoclet-plugin-hibernate/1.0.5-SNAPSHOT/ > > > > > > Thank you! I am now using the latest version of > xdoclet-plugin-hibernate-1.0.5.jar and xdoclet-2.0.7.jar. > Still I don't see > the fix. > > This is my code: > > /** > * . > * > * @hibernate.component > * prefix="tms_" > */ > public ComponentReceipt getComponentReceipt() { > return iComponentReceipt; > } > > Here is my ant task: > > <target name="build.xdoclet.hibernate" > depends="build.conf.prop.build" > description="Generate Hibernate config from > XDoclet tags in java > src"> > > <taskdef > name="xdoclet" > > classname="org.xdoclet.ant.XDocletTask"> > <classpath> > <fileset > dir="lib/xdoclet" includes="*.jar"/> > <fileset > dir="lib/commons" includes="*.jar"/> > <fileset dir="lib/jaxen" > includes="*.jar"/> > <fileset dir="lib/dom4j" > includes="*.jar"/> > </classpath> > </taskdef> > <xdoclet verbose="true"> > <!-- defines the file handled by > xdoclet2 --> > <fileset dir="src/java/core" > includes="**/model/**/*.java"/> > <fileset > dir="src/java/harvester" > includes="**/model/**/*.java"/> > <fileset dir="src/java/store" > includes="**/model/**/*.java"/> > <!-- defines the processing of a plugin > --> > <component > > classname="org.xdoclet.plugin.hibernate.HibernateMappingPlugin" > destdir="build/hibernate" > version="3.0" > /> > </xdoclet> > </target> > > This is from the resulting hbm.xml: > > <component name="componentReceipt"> > <property name="datetime"/> > <property name="source"/> > <property name="sourceDatetime"/> > <property name="foreignId"/> > </component> > > I am expecting the datetime, source, sourceDatetime, and > foreignId fields to > be prefixed with "tms_". Any idea what I am > doing wrong? > > Gene. > > -- > View this message in context: > http://www.nabble.com/How-to-download-fix-for-component-prefix--tp19761067p19762890.html > Sent from the xdoclet - user mailing list archive at > Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Free embeddable forum powered by Nabble | Forum Help |