Re: Another strange ClassCastException

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Nov 17 2003 - 11:33:09 EST

  • Next message: Andrus Adamchik: "Re: Another strange ClassCastException"

    On Nov 17, 2003, at 11:07 AM, Michael Schuldt wrote:

    > Caused by: java.lang.ClassCastException
    > at
    > org.objectstyle.cayenne.access.SnapshotManager.isToOneTargetModified(Sn
    > apsho
    > tManager.java:313

    Same thing as before, only in a different place. Will fix it soon (and
    also try to locate other places where Cayenne does a DataObject cast
    without checking for faults).

    > Maybe the structure of my objects is important for this so I'm
    > enclosing the
    > important part of the xml-file.

    Yes, it confirms my idea that the problem is caused by flattened
    relationships:

    <obj-relationship name="reaktiviertAls" source="TbAngebot"
    target="TbAngebot" toMany="false">
                    <db-relationship-ref source="tb_angebot"
    target="angebot_reaktivieren_assoz" name="toReaktiviertAssozVon"/>
                    <db-relationship-ref source="angebot_reaktivieren_assoz"
    target="tb_angebot" name="fromReaktiviertAssozAls"/>
    </obj-relationship>

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Nov 17 2003 - 11:33:14 EST