如何使用休眠映射 Deque?
@Entity
class MyClass {
@OneToMany
Deque<StackObject> stack = new LinkedList<StackObject>();
}
例外:
java.lang.RuntimeException: Error invoking constructor public org.apache.tapestry5.internal.hibernate.HibernateSessionSourceImpl(org.slf4j.Logger,java.util.List): Illegal attempt to map a non collection as a @OneToMany, @ManyToMany or @CollectionOfElements