can't persist jpa entity in app engine
Posted
by Bunny Rabbit
on Stack Overflow
See other posts from Stack Overflow
or by Bunny Rabbit
Published on 2010-04-13T09:00:53Z
Indexed on
2010/04/13
9:02 UTC
Read the original article
Hit count: 375
public class Blobx {
private String name;
private BlobKey blobKey;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
//getters and setters
}
public class Userx {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
private String name;
@OneToMany
private List<Blobx> blobs;
//getters and setters
}
while persiting the above Userx entity object i am encountering
java.lang.IllegalStateException: Field "entities.Userx.blobs" contains a persistable object that isnt persistent, but the field doesnt allow cascade-persist!
© Stack Overflow or respective owner