You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geronimo.apache.org by "Anthony Insolia (JIRA)" <ji...@apache.org> on 2013/06/26 00:05:20 UTC
[jira] [Created] (GERONIMO-6474) Reactivated/Reloaded Entity Bean
not restoring UUID. UUID is correct upon construction and is correct in the
RDB.
Anthony Insolia created GERONIMO-6474:
-----------------------------------------
Summary: Reactivated/Reloaded Entity Bean not restoring UUID. UUID is correct upon construction and is correct in the RDB.
Key: GERONIMO-6474
URL: https://issues.apache.org/jira/browse/GERONIMO-6474
Project: Geronimo
Issue Type: Bug
Security Level: public (Regular issues)
Components: OpenEJB
Affects Versions: 3.0.0
Environment: Apache Geronimo 3.0
Apache Myfaces
Primefaces
MySQL
Reporter: Anthony Insolia
I have a User class with an @OneToOne relationship to a Desktop class
User->Desktop
@Entity
@Table(name="user_table")
@Unique(members={"name"})
@ManagedBean(name = "User")
@RequestScoped
public class User extends Element_ implements Serializable {
@Id
private long uuid = 0;
@OneToOne(targetEntity=Folder.class,cascade=CascadeType.ALL)
@MapsId
private Folder desktop = null;
...
I was trying to save the User and their desktop and JPA informed me that the UUID at the superclass level didn't match the UUID at the subclass level.
Here is some println's from a method in User market @PostLoad to see what the desktop UUID's are:
User (snoop) is looking at the desktop with THIS <uuid> 0
User (snoop) is looking at the desktop with SUPER <uuid> 429823953
'snoop' is the name of the @PostLoad method in my User class
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira