Hi all,
I got an entity mapped with references to parent and children. As you
can see parentContent points to a entity of the same type and children
to a collection of similar entities. This way we have a tree in one
table. All works fine with Castor 0.9.6.
When I tested with 0.9.9M1 I got "Column out of range"-exception or
something similar as soon as I tried to do an OQL against that entity.
Any ideas?
Regards
Mattias Bogeblad
<!-- Mapping for Content -->
<class
name="org.infoglue.cms.entities.content.impl.simple.ContentImpl"
identity="contentId" key-generator="IDENTITY">
<description>Content</description>
<cache-type type="unlimited" capacity="10000"/>
<map-to table="cmContent"/>
<field name="contentId" type="java.lang.Integer">
<sql name="contentId" type="integer" dirty="check" />
</field>
<field name="name" type="java.lang.String">
<sql name="name" type="varchar" dirty="check" />
</field>
<field name="parentContent"
type="org.infoglue.cms.entities.content.impl.simple.ContentImpl">
<sql name="parentContentId"/>
</field>
<field name="repository"
type="org.infoglue.cms.entities.management.impl.simple.RepositoryImpl">
<sql name="repositoryId"/>
</field>
<field name="children"
type="org.infoglue.cms.entities.content.impl.simple.ContentImpl"
lazy="true" collection="collection">
<sql many-key="parentContentId"/>
</field>
</class>
###########################################
For din sakerhet sa har Modul 1 genomsokt detta meddelande efter virus med
F-Secure Anti-Virus for Microsoft Exchange.
For mer information, se http://www.F-Secure.com/
For your protection, this email has been virus scanned when sent from Modul 1
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------