Re: 2 Problems with hibernate mappingplugin

Konstantin Priblouda <kpriblouda-/[email protected]>
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <[email protected]>

--- Frank Russo <[email protected]> wrote:

> It ends up I need to use a list for JSF. To answer
> your questions, I'm
> using the versions you recommend. Here is my entry
> in maven2 pom:
> 
> <plugin>
>     <groupId>xdoclet</groupId>
>     <artifactId>maven2-xdoclet2-plugin</artifactId>
>     <version>2.0.5-SNAPSHOT</version>
>     <configuration>
>         <configs>
>             <config>
>  
>
<plugin>org.xdoclet.plugin.hibernate.HibernateMappingPlugin</plugin>
>                 <params>
>                     <version>3.0</version>
>                    
> <destdir>target/fxalladmin/WEB-INF/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>
> 
> The error I'm getting again is:
> 
>    Line: 15 Column: 69
>    Message: Attribute "order-by" must be declared
> for element type
> "list".
> 
> Here are my xdoclet tags, where you can see I have
> an order-by:
> 
>      @hibernate.list order-by="SENDERCOMPID"
> lazy="false"
>      @hibernate.key column="PARTICIPANT_ID"
>      @hibernate.one-to-many
> class="admin.entity.ParticipantSenderCompID"
>

Is order-by contained in mapping?  ( aparenntly - or
else it would not fail validation ) This could be 
some weird classloading issue for dtd, or wrong XML
parser - we user xerxec 2.0.4 ) 

PS: I will deploy fresh snapshots this weeekend, so
invocation of plugin will change

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.