【发布时间】:2011-06-19 22:30:55
【问题描述】:
我正在使用 JPA 2.0。 (EclipseLink 2.0.2)
如果实体包含关系,例如:
@OneToMany(cascade = CascadeType.ALL, mappedBy = "userId")
private Collection<Blog> blogCollection;
我通过 RPC 发送时收到以下错误:
com.google.gwt.user.client.rpc.SerializationException: Type 'org.eclipse.persistence.indirection.IndirectList' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.: instance = {[]}
【问题讨论】: