Motivated by this question, I tried to change the following:
@ManyToMany(cascade={CascadeType.REMOVE, CascadeType.MERGE}) private Set<Expression> exps = new LinkedHashSet<Expression>();
in
@ManyToMany(cascade={CascadeType.REMOVE, CascadeType.MERGE}) private LinkedHashSet<Expression> exps = new LinkedHashSet<Expression>();
However, such a movement leads to:
Exception [EclipseLink-1] (Eclipse Persistence Services - 2.1.0.v20100614-r7608): org.eclipse.persistence.exceptions.DescriptorException
Exception Description: The [exps] attribute is not declared as type ValueHolderInterface, but its display uses indirect. Mapping: org.eclipse.persistence.mappings.ManyToManyMapping [exps] Descriptor: RelationalDescriptor (com.mysimpatico.memoplatform.persistence.entities.Meaning β [DatabaseTable (MEANING)])
How do I assume in JPA2 to achieve the desired behavior?
simpatico
source share