No doubt someone will find this but here goes: In the CVS version of castor,
one to many relationships have a problem. This code was working with prior
version of castor, but not castor things there should be a
getValues/setValues/addValues call on ConstraintImpl that accepts/returns
ConstraintValueImpl's when it is marked as being a one-to-many and thus
should accept/return the collection type specified.



here's my error:
[Default] Unable to find collection of entities in database ROOT[The method
set/addValues in class com.againtech.ce.exte
nsible.ConstraintImpl accepting/returning object of type class
com.againtech.ce.extensible.ConstraintValueImpl was not f
ound]:
org.exolab.castor.mapping.MappingException: The method set/addValues in
class com.againtech.ce.extensible.ConstraintImpl
 accepting/returning object of type class
com.againtech.ce.extensible.ConstraintValueImpl was not found


mapping file:

  <class name="com.againtech.ce.extensible.ConstraintImpl" identity="UUID">
    <cache-type type="unlimited"/>
    <!-- Constraint mapping -->
    <description>A Constraint</description>
    <map-to table="ATTRIBUTE_CONSTRAINT"/>
    <field name="UUID" type="string">
      <sql name="attribute_constraint_uuid" type="varchar"/>
    </field>
    <field name="constraintType" type="string">
      <sql name="constraint_type" type="varchar"/>
    </field>
    <field name="name" type="string">
      <sql name="attribute_constraint_name" type="varchar"/>
    </field>
    <field name="rangeLow" type="string">
      <sql name="range_low" type="varchar"/>
    </field>
    <field name="rangeHigh" type="string">
      <sql name="range_high" type="varchar"/>
    </field>
    <field name="regularExpression" type="string">
      <sql name="regular_expression" type="varchar"/>
    </field>
    <field name="values"
type="com.againtech.ce.extensible.ConstraintValueImpl" required="true"
collection="arraylist">
           <sql many-key="attribute_constraint_uuid"/>
    </field>
        <field name="activationDate" type="date">
                <sql name="activation_date" type="timestamp"/>
        </field>
        <field name="operatingUnit" type="com.againtech.ce.unit.OperatingUnitImpl">
                <sql name="unit_uuid"/>
        </field>
        <field name="lastUserUUID" type="string">
                <sql name="last_user_uuid" type="varchar"/>
        </field>
  </class>

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to