Я использую GWT, Hibernate и Gilead и не избавляюсь от исключения сериализации:
com.google.gwt.user.client.rpc.SerializationException: Type '[Ljava.lang.Object;' 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.
Я делаю JOIN на языке запросов Hibernate, который вызывает ошибку:
List<UserEvent> userEvents = session.createQuery(
"FROM UserEvent as userevent JOIN userevent.event as event WHERE userevent.user = ? AND userevent.status = 'JOIN' ORDER BY event.eventBegin ASC")
.setLong(0, user.getUserID()).setFirstResult(start).setMaxResults(maxResult).list();
код для занятий:
@Entity
public class UserEvent extends LightEntity implements Serializable {
private static final long serialVersionUID = -291120580889352994L;
@Id
@ManyToOne
@JoinColumn(name = "user_userid")
private User user;
@Id
@ManyToOne
@JoinColumn(name = "event_eventid")
private Event event;
@Enumerated(EnumType.STRING)
private EventStatus status;
private Long time;
public UserEvent() {
}
@Entity
public class Event extends LightEntity implements Serializable {
private static final long serialVersionUID = -2504468186803850440L;
@Id
@GenericGenerator(name = "event_seq", strategy = "webapp.hibernate.EventSeq")
@GeneratedValue(generator = "event_seq")
private Long eventID;
private Long eventBegin;
public Event() {
}
Кто-нибудь знает решение для этого?