Persisting @ElementCollection of @Embeddable (Google App Engine, datanucleus)
问题 I am trying to persist a JPA entity with a collection of custom @Embeddable objects using the JPA2 @ElementCollection annotation. Simple example (both classes are enhanced by datanucleus): @Entity public class TestEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; @ElementCollection private Set<TestEmbeddable> testEmbeddables; public Set<TestEmbeddable> testEmbeddables() { return this.testEmbeddables; } } @Embeddable public class TestEmbeddable implements