Re: RE: [m2] Hibernate doclet
2006/3/2, Akbarr <[EMAIL PROTECTED]>: > It's a bug of maven2-xdoclet2-plugin, or either > xdoclet-plugin-hibernate?. The former - xdoclet-plugin-hibernate. > And is it registered in Jira? Not that I'm aware of. I'll have to create one to submit my patch if it's built. > Andrés Jacek -- Jacek Laskowski http://www.laskowski.org.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: [m2] Hibernate doclet
On 2/27/06, Jacek Laskowski <[EMAIL PROTECTED]> wrote: > > 2006/2/27, Akbarr <[EMAIL PROTECTED]>: > > > No, the query is in just 1 line: > > > > /** > > * @hibernate.class table="I18N_Textos" > > * > > * @hibernate.query name="getTextoI18N" query="from I18NTextos i where > i.locale=:locale and i.texto=:texto" > > * > > */ > > > > The generated XML is: > > > > > > > > > > > > (the "representation" node raises an error) > > Hi, > > This is a bug, which I've come across, too. I once checked out the > sources of plugin-hibernate to fix it, but was unable to find some > spare time to do it actually. It's a bug of maven2-xdoclet2-plugin, or either xdoclet-plugin-hibernate?. And is it registered in Jira?. I can't believe no query can't be created, but it doesn't work in any version! Andrés
Re: RE: [m2] Hibernate doclet
2006/2/27, Akbarr <[EMAIL PROTECTED]>: > No, the query is in just 1 line: > > /** > * @hibernate.class table="I18N_Textos" > * > * @hibernate.query name="getTextoI18N" query="from I18NTextos i where > i.locale=:locale and i.texto=:texto" > * > */ > > The generated XML is: > > > > > > (the "representation" node raises an error) Hi, This is a bug, which I've come across, too. I once checked out the sources of plugin-hibernate to fix it, but was unable to find some spare time to do it actually. > Andrés Jacek -- Jacek Laskowski http://www.laskowski.org.pl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: RE: [m2] Hibernate doclet
Hello Andres 1) Not much documentation sadly, but I say it's pretty straightforward. If you have problems remapping something you can just send me an email or find me at irc://irc.codehaus.org/#maven 2) Use the 1.0.3 version of xdoclet-plugin-hibernate instead of 1.0.4-SNAPSHOT and give it a try Regards Johann Reyes -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 7:41 PM To: Maven Users List Subject: Re: RE: [m2] Hibernate doclet Thanks Johann: >About xdoclet2 > >1) Yes, there are changes like that, but mostly they are minimal if you >don't use many collections in your objects. Is there documentation about the differences between Hibernate xdoclet and xdoclet2?. I mean, the only difference is to replace "collection-xxx" tags for just "xxx"?. I only noticed the obvious errors. >2) The empty query is because you are breaking your queries in 2 or more >lines, with queries, you just have to create the whole query in one line or >else the query just breaks and your hibernate mapping with it. No, the query is in just 1 line: /** * @hibernate.class table="I18N_Textos" * * @hibernate.query name="getTextoI18N" query="from I18NTextos i where i.locale=:locale and i.texto=:texto" * */ The generated XML is: (the "representation" node raises an error) And the pom.xml: xdoclet maven2-xdoclet2-plugin org.xdoclet.plugin.hibernate.HibernateMappingPlugin 2.0 ${basedir}/target/classes/ xdoclet-plugins xdoclet-plugin-hibernate 1.0.4-SNAPSHOT xdoclet Thanks in advance, Andrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE: [m2] Hibernate doclet
Thanks Johann: >About xdoclet2 > >1) Yes, there are changes like that, but mostly they are minimal if you >don't use many collections in your objects. Is there documentation about the differences between Hibernate xdoclet and xdoclet2?. I mean, the only difference is to replace "collection-xxx" tags for just "xxx"?. I only noticed the obvious errors. >2) The empty query is because you are breaking your queries in 2 or more >lines, with queries, you just have to create the whole query in one line or >else the query just breaks and your hibernate mapping with it. No, the query is in just 1 line: /** * @hibernate.class table="I18N_Textos" * * @hibernate.query name="getTextoI18N" query="from I18NTextos i where i.locale=:locale and i.texto=:texto" * */ The generated XML is: (the "representation" node raises an error) And the pom.xml: xdoclet maven2-xdoclet2-plugin org.xdoclet.plugin.hibernate.HibernateMappingPlugin 2.0 ${basedir}/target/classes/ xdoclet-plugins xdoclet-plugin-hibernate 1.0.4-SNAPSHOT xdoclet Thanks in advance, Andrés