我使用标签@Serialize创建了一个带有pojo(ProductVariations)的实体,通过objectify在GAE中持久化:
@Entity
public class Product extends DatastoreObject{
//Reference without the colors and size information
@Index private String ref;
private double price;
private String details;
private String description;
@Serialize private ProductVariations pVariations;
private List<String> tags = new ArrayList<String>();
//Getters & Setters
}
问题是我看不到如何使用 requestfactory 访问我的 pojo,因为 ProductVariations 不是域类型。
在任何其他情况下,我都会使用嵌入对象,但在这种特殊情况下,我在 ProductVariations 中有一个嵌套集合,女巫本身就是一个集合(ProductVariations 扩展了 ArrayList)。
关于如何实现这一目标的任何建议?
谢谢你。