| Summary: | derived identifier of derived identifier | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | jmilkiewicz <jmilkiewicz> | ||||||
| Component: | Eclipselink | Assignee: | Nobody - feel free to take it <nobody> | ||||||
| Status: | NEW --- | QA Contact: | |||||||
| Severity: | normal | ||||||||
| Priority: | P2 | CC: | guy.pelletier, mpaesold, tom.ware | ||||||
| Version: | unspecified | ||||||||
| Target Milestone: | --- | ||||||||
| Hardware: | PC | ||||||||
| OS: | Linux | ||||||||
| Whiteboard: | |||||||||
| Attachments: |
|
||||||||
|
Description
jmilkiewicz
Created attachment 198006 [details]
sample maven-based project to reproduce the issue
In attachement you can find an extracted standalone maven-based project to reporduce the issue. The original environments I faced the issue are GF 3.1 b40/GF 3.1 final which come with eclipselink 2.2.0.v20110114-r8831 and 2.2.0.v20110202-r8913 respectively. Created attachment 198008 [details]
stacktace
In spite of the fact, I would like to have the mapping worked on GF 3.1 , i did a check the sample project with the newest version of eclipselink i could find on http://ftp.ing.umu.se/mirror/eclipse/rt/eclipselink/maven.repo/org/eclipse/persistence/eclipselink/ 2.4.0.v20110608-r9540 and the same exception is thrown Yes, looks like a valid issue. In the mean time, if you can, modifying the Dealer entity to map 'user' as an @Id rather than @MapsId should get you past the exception. @OneToOne(cascade = CascadeType.ALL) @Id private AppUser user; Thx Guy. I followed your advice and it seems it works. Unfortunately, I had to modify a number of JPA-QL queries to accommodate this workaround since Dealer entity would lack of id property.On the other side looking at sql-generated queries it seems that modifications to JPA queries haven't changed them at all. I was worried that eclipse link will need to do an extra join with APPUSER table but this is not a case. Do you know any other consequences (beside of changing JPA queries) of using your approach to my original mapping? No, I can't think of any. The change you described was the only one I anticipated. In the mean time, vote for this bug if you want to speed up the rate at which this bug is addressed. Your original configuration should be supported. Setting target and priority. See the following page for the meanings of these fields: http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines Community: Please vote for this bug if it is important to you. Votes are one of the main criteria we use to determine which bugs to fix next. The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink |