我正在使用JPA 2.0。 (EclipseLink的2.0.2)通過GWT RPC問題與關係的實體
如果實體包含關係,例如:
@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 = {[]}