Hello,
I've wrote three entity class using the composite pattern.
I've tried to map thes classes in database but i have always the following error :
org.hibernate.MappingException: Could not determine type for: java.util.List, for columns:[org.hibernate.mapping.Column(groupesEtEditeurs)]
This is a part of my code for the mapping :
@Entity
@Table(name = "groupesetediteurs")
@Inheritance(strategy = InheritanceType.JOINED)
public abstract class EGroupesEtEditeurs
implements Serializable {
...
@OneToMany(cascade=CascadeType.ALL)
@JoinColumn(name="parent_id")
private List groupesEtEditeurs;
...
}
Thank you for your help,
Pascal.
Are you sure?
your missing either a generic collection or an explicit targetEntity, but it should fail more explicitly