[JIRA] Created: (CAY-860) JPA no joins created for to-many relationship

From: Andrus Adamchik (JIRA) ("Andrus)
Date: Sun Sep 02 2007 - 13:22:50 EDT

  • Next message: Andrus Adamchik (JIRA): "[JIRA] Created: (CAY-861) ObjRelationship 'addDbRelationship()' and 'removeDbRelationship' leave object in an inconsistent state"

    JPA no joins created for to-many relationship
    ----------------------------------------------

                     Key: CAY-860
                     URL: https://issues.apache.org/cayenne/browse/CAY-860
                 Project: Cayenne
              Issue Type: Bug
              Components: Cayenne JPA
        Affects Versions: 3.0
                Reporter: Andrus Adamchik
                Assignee: Andrus Adamchik
                 Fix For: 3.0

    The following complimentary relationship mapping:

    @Entity
    public class Artist {
         ...

    ..neToMany(targetEntity = Painting.class, mappedBy = "artist")
            protected Collection<Painting> paintings;
    }

    @Entity
    public class Painting {
           ..anyToOne
            protected Artist artist;
    }

    On Cayenne side, paintings DbRelationship is created with no joins

    -- 
    This message is automatically generated by JIRA.
    -
    You can reply to this email to add a comment to the issue online.
    



    This archive was generated by hypermail 2.0.0 : Sun Sep 02 2007 - 13:23:17 EDT