java无法将@Serialize与requestfactory一起使用
我使用@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)
关于如何实现这一点,有什么建议吗
谢谢
共 (0) 个答案