Re: [M2] hibernate doclet errors in build due to annotations in code.
Hi Mick, Error parsing File E:\SourceCode\NPI\npi_tactical_scm\NPI_Provider\common\services\src\main\java\org\delta\provider\npi\dao\impl\P roviderHistoryDAOImpl.java:Encountered at line 30, column 22. Was expecting one of: IDENTIFIER ... [ ... . ... Have you checked with mvn -X compile that you are using the right compiler version ? Kind regards. Karl Heinz Marbaise -- SoftwareEntwicklung Beratung Schulunghttp://www.soebes.de Dipl.Ing.(FH) Karl Heinz Marbaiseemail: [EMAIL PROTECTED] Tel.: +49 (0) 2405 / 415 893 ICQ#: 135949029 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:localeand i.texto=:texto]] /query (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: [m2] Hibernate doclet
Hello Andres About xdoclet2 1) Yes, there are changes like that, but mostly they are minimal if you don't use many collections in your objects. 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. Regards Johann Reyes -Original Message- From: Akbarr [mailto:[EMAIL PROTECTED] Sent: Sunday, February 26, 2006 5:35 PM To: users Subject: [m2] Hibernate doclet I'm migrating my projects from Ant to Maven, and I've found a problem when trying to run Hibernate Doclet from Maven 2. I've tried to: * Run Ant code with antrun plugin * Make an Ant plug-in running Hibernate doclet * Use hibernatedoclet-maven-plugin from org.codehaus.mojo After dealing with sever classpath issues, I obtain the same results in every three choices: Embedded error: Can't create a hibernate element under hibernatedoclet. Make sure the jar file containing the corresponding subtask class is on the classpath specified in the taskdef that defined {2}. There's another choice, which is to migrate to XDoclet2, but I've seen that although it works fine: * The hibernate tags are sligthly different, e.g. collection-key is just key in XDoclet2 * I've found at least one error: when declaring a query, the generated XML has an empty representation node into the query, which finally raises a validation error. I'm sure that someone must have been in a similar case before, so any suggestion, please?. Have I done anything wrong? 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: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (the representation node raises an error) And the pom.xml: plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config pluginorg.xdoclet.plugin.hibernate.HibernateMappingPlugin/plugin params version2.0/version destdir${basedir}/target/classes//destdir /params /config /configs /configuration dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-hibernate/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies executions execution goals goalxdoclet/goal /goals /execution /executions /plugin Thanks in advance, Andrés
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: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (the representation node raises an error) And the pom.xml: plugin groupIdxdoclet/groupId artifactIdmaven2-xdoclet2-plugin/artifactId configuration configs config pluginorg.xdoclet.plugin.hibernate.HibernateMappingPlugin/plugin params version2.0/version destdir${basedir}/target/classes//destdir /params /config /configs /configuration dependencies dependency groupIdxdoclet-plugins/groupId artifactIdxdoclet-plugin-hibernate/artifactId version1.0.4-SNAPSHOT/version /dependency /dependencies executions execution goals goalxdoclet/goal /goals /execution /executions /plugin Thanks in advance, Andrés - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
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: query name=getTextoI18N representation/![CDATA[from I18NTextos i where i.locale=:locale and i.texto=:texto]] /query (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]