1. Problem with repeated columns (MappingException) forum.hibernate.orgHere a piece of my "ReqProdItem.hbm.xml": ( ...) |
2. MappingException: Repeated column... forum.hibernate.orgprivate Set texte = Collections.EMPTY_SET; /** * @return Returns the text. * @hibernate.set lazy="true" * sort="com.pi.tcomadm.entities.components.Version" * @hibernate.collection-key column="tarif_id" * ... |
3. MappingException: Repeated column forum.hibernate.orgHibernate version: hibernate-3.2.1ga hibernate-annotations-3.2.1ga hibernate-entitymanager-3.2.1ga (from repo1.maven.org) Full stack trace of any exception that occurs: Caused by: org.hibernate.MappingException: Repeated column in mapping for collection: de.uniulm.iai.domain.lecture.Lecture.tutorials column: semester at org.hibernate.mapping.Collection.checkColumnDuplication(Collection.java:304) at org.hibernate.mapping.Collection.checkColumnDuplication(Collection.java:327) at org.hibernate.mapping.Collection.validate(Collection.java:284) at org.hibernate.cfg.Configuration.validate(Configuration.java:1103) at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1284) at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713) ... 47 more (I skipped the spring exception which was thrown after this Hibernate Exception). Name and version of the database you ... |
4. Caused by: org.hibernate.MappingException: Repeated column i forum.hibernate.orgThis is the code Code: @Entity public class Sinistre implements Serializable{ ... @Id private long idH; ... @AttributeOverrides({ @AttributeOverride(name="villeLieu", column=@Column(name="ville")), @AttributeOverride(name="adresseLieu", column=@Column(name="adresse")), ... |