Did you ever get this resolved? I'm having the same problem.
On Thursday, July 25, 2013 5:54:21 AM UTC-7, Kaushal Prajapati wrote:
>
>
>
>
>
>
> *Exception persist method Save Attempt to assign child with key
> Role(19003) to parent with key User(no-id-yet). Parent keys are
> immutableException persist method Save Detected attempt to establish
> User(19004) as the parent of Role(1) but the entity identified by Role(1)
> has already been persisted without a parent. A parent cannot be
> established or changed once an object has been persisted.I want to save
> user entity with role as a relation entity *
>
>
>
>
>
>
>
>
>
>
>
> *public class User{ @Id @GeneratedValue(strategy =
> GenerationType.IDENTITY) private Key
> id;@ManyToOne(fetch=FetchType.EAGER,cascade = CascadeType.ALL)
> @JoinColumn(name="role_id") private Role role;}i cant save user
> entity when i assign role to user entity.*
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
For more options, visit https://groups.google.com/d/optout.