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 {
...
@OneToMany(targetEntity = Painting.class, mappedBy = "artist")
protected Collection<Painting> paintings;
}
@Entity
public class Painting {
@ManyToOne
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.