[OS-JIRA] Created: (CAY-118) EOModel import engineering errors on certain schemas

From: jir..bjectstyle.org
Date: Sun Apr 18 2004 - 14:35:46 EDT

  • Next message: Andrus Adamchik: "1.1 Beta is approaching"

    Message:

      A new issue has been created in JIRA.

    ---------------------------------------------------------------------
    View the issue:

      http://objectstyle.org/jira/secure/ViewIssue.jspa?key=CAY-118

    Here is an overview of the issue:
    ---------------------------------------------------------------------
            Key: CAY-118
        Summary: EOModel import engineering errors on certain schemas
           Type: Bug

         Status: Assigned
       Priority: Major

        Project: Cayenne
     Components:
                 Cayenne Core Library
       Fix Fors:
                 1.1 [DEV]
       Versions:
                 1.0 [STABLE]
                 1.1 [DEV]

       Assignee: Andrus Adamchik
       Reporter: Andrus Adamchik

        Created: Sun, 18 Apr 2004 2:34 PM
        Updated: Sun, 18 Apr 2004 2:34 PM
    Environment: EOModel, WO 5.2.3

    Description:
    A few errors, all related to creating a "synthetic" reverse DbRelationship:

    1. When creating a reverse reflexive relationship (relationship to itself), the following exception is thrown:

    java.util.ConcurrentModificationException
            at java.util.TreeMap$EntryIterator.nextEntry(TreeMap.java:1026)
            at java.util.TreeMap$EntryIterator.next(TreeMap.java:1033)
            at org.apache.commons.collections.FastTreeMap$CollectionView$CollectionViewIterator.next(FastTreeMap.java:791)
            at java.util.Collections$3.next(Collections.java:1328)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.makeReverseDbRelationships(EOModelProcessor.java:435)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:141)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:92)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.importEOModel(ImportEOModelAction.java:127)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.performAction(ImportEOModelAction.java:104)
            at org.objectstyle.cayenne.modeler.action.CayenneAction.actionPerformed(CayenneAction.java:184)

    2. When there are more then one one-way incoming relationship for a given entity:

    java.lang.IllegalArgumentException: Attempt to insert duplicate key. [key 'toVirtualKioskTypeReverse', parent 'VirtualKioskType', child 'toVirtualKioskTypeReverse']
            at org.objectstyle.cayenne.util.CayenneMap.put(CayenneMap.java:146)
            at org.objectstyle.cayenne.map.Entity.addRelationship(Entity.java:207)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.makeReverseDbRelationships(EOModelProcessor.java:460)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:141)
            at org.objectstyle.cayenne.wocompat.EOModelProcessor.loadEOModel(EOModelProcessor.java:92)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.importEOModel(ImportEOModelAction.java:127)
            at org.objectstyle.cayenne.modeler.action.ImportEOModelAction.performAction(ImportEOModelAction.java:104)
            at org.objectstyle.cayenne.modeler.action.CayenneAction.actionPerformed(CayenneAction.java:184)
     

    ---------------------------------------------------------------------
    JIRA INFORMATION:
    This message is automatically generated by JIRA.

    If you think it was sent incorrectly contact one of the administrators:
       http://objectstyle.org/jira/secure/Administrators.jspa

    If you want more information on JIRA, or have a bug to report see:
       http://www.atlassian.com/software/jira



    This archive was generated by hypermail 2.0.0 : Sun Apr 18 2004 - 14:35:48 EDT