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>
      <groupId>xdoclet</groupId>
      <artifactId>maven2-xdoclet2-plugin</artifactId>
      <configuration>
        <configs>
          <config>
 
<plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin>
            <params>
              <version>2.0</version>
              <destdir>${basedir}/target/classes/</destdir>
            </params>
          </config>
        </configs>
      </configuration>
      <dependencies>
        <dependency>
          <groupId>xdoclet-plugins</groupId>
          <artifactId>xdoclet-plugin-hibernate</artifactId> 
          <version>1.0.4-SNAPSHOT</version>
        </dependency>
      </dependencies>
      <executions>
        <execution>
          <goals>
            <goal>xdoclet</goal>
          </goals>
        </execution>
      </executions>
    </plugin>

Thanks in advance,

Andrés





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to