-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Array inverse attribute error
PostPosted: Tue Oct 14, 2003 8:32 pm 
Newbie

Joined: Tue Oct 14, 2003 8:21 pm
Posts: 4
Hello folks,

I am using xdoclet to generate an array mapping as such:

/**
* @hibernate.array role="agentcies" table="AGENTCY"
* @hibernate.collection-key column="ADDRESS_ID"
* @hibernate.collection-index column="ROW_NUM"
* @hibernate.collection-one-to-many class="com.pmt.bom.soap.Agentcy"
*/

which generates:

<array
name="agentcies"
table="AGENTCY"
inverse="false"
cascade="none"
>
<key column="ADDRESS_ID"/>
<index column="ADDRESS_ID"/>
<one-to-many class="com.pmt.bom.soap.Agentcy"/>
</array>

All seems well. Now when I deploy to jboss (3.2.2RC3) and my mapping file is parsed I get an exception as such:

org.xml.sax.SAXParseException: Attribute "inverse" must be declared for element type "array".
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232)

This happens everywhere I have an array type defined. Any ideas?


Top
 Profile  
 
 Post subject: Hibernatedoclet array element prob.
PostPosted: Wed Oct 15, 2003 11:25 am 
Newbie

Joined: Tue Oct 14, 2003 8:21 pm
Posts: 4
Ok, I found the problem. The xdoclet tag @hibernate.array is creating an inverse attribute dispite the fact that it breaks the dtd for the array element. So is this a bug or am I missing something?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 15, 2003 12:06 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Well, using arrays for associations is not really a good thing, so the dtd doesn't have an inverse attribute. I don't think theres any especially compelling reason for that, however.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.