1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
| juin 05, 2013 2:20:40 PM org.hibernate.cfg.Environment <clinit>
INFO: Hibernate 3.3.1.GA
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Environment <clinit>
INFO: hibernate.properties not found
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Environment buildBytecodeProvider
INFO: Bytecode provider name : javassist
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Environment <clinit>
INFO: using JDK 1.4 java.sql.Timestamp handling
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Configuration configure
INFO: configuring from resource: /hibernate.cfg.xml
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Configuration getConfigurationInputStream
INFO: Configuration resource: /hibernate.cfg.xml
juin 05, 2013 2:20:40 PM org.hibernate.cfg.Configuration addResource
INFO: Reading mappings from resource : Etudiant.hbm.xml
juin 05, 2013 2:20:41 PM org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
INFO: Mapping class: Modele.Etudiant -> etudiant
juin 05, 2013 2:20:41 PM org.hibernate.cfg.Configuration doConfigure
INFO: Configured SessionFactory: null
Initial SessionFactory creation failed.org.hibernate.MappingException: Repeated column in mapping for entity: Modele.Etudiant column: Pseudo (should be mapped with insert="false" update="false")
Exception in thread "main" java.lang.ExceptionInInitializerError
at Modele.dao.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:19)
at Modele.dao.EtudiantDAO.main(EtudiantDAO.java:22)
Caused by: org.hibernate.MappingException: Repeated column in mapping for entity: Modele.Etudiant column: Pseudo (should be mapped with insert="false" update="false")
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:670)
at org.hibernate.mapping.PersistentClass.checkPropertyColumnDuplication(PersistentClass.java:692)
at org.hibernate.mapping.PersistentClass.checkColumnDuplication(PersistentClass.java:714)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:468)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1135)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1320)
at Modele.dao.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:14)
... 1 more |
Partager