【发布时间】:2010-04-13 09:00:53
【问题描述】:
@Entity
public class Blobx {
private String name;
private BlobKey blobKey;
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
//getters and setters
}
@Entity
public class Userx {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Key id;
private String name;
@OneToMany
private List<Blobx> blobs;
//getters and setters
}
在处理上述 Userx 实体对象时,我遇到了
java.lang.IllegalStateException: Field "entities.Userx.blobs" contains a persistable object that isnt persistent, but the field doesnt allow cascade-persist!
【问题讨论】:
标签: java google-app-engine jpa