SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/C:/Programmi/NetBeans%206.7.1/slf4j-1.5.8/slf4j-simple-1.5.8.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/C:/Programmi/NetBeans%206.7.1/hibernate-annotations-3.4.0.GA/lib/test/slf4j-log4j12.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
31 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA
31 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
62 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
78 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
265 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
265 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
546 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : prova.hbm.xml
750 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: Prova -> prova
968 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
984 [main] INFO org.hibernate.cfg.HbmBinder - Mapping collection: Prova.prove -> prova
Exception in thread "main" org.hibernate.MappingException: Duplicate property mapping of codice found in Prova
at org.hibernate.mapping.PersistentClass.checkPropertyDuplication(PersistentClass.java:477)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:467)
at org.hibernate.mapping.RootClass.validate(RootClass.java:215)
at org.hibernate.cfg.Configuration.validate(Configuration.java:1149)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1334)
at Main.main(Main.java:22)
Java Result: 1
Why it doesn't found? i don't understand...