hibernate Fehlerliste beim inserten

  • Themenstarter Themenstarter Schwierige frage
  • Beginndatum Beginndatum
S

Schwierige frage

also ich will etwas inserten und es kommen vorher recht viele Fehler aber der Insert wird getätigt


104 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.2.0.Final
115 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.6.0.Final
117 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
120 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
122 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
180 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
180 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
246 [main] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
278 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource : contact.hbm.xml
304 [main] WARN org.hibernate.util.DTDEntityResolver - recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
341 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
396 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: roseindia.tutorial.hibernate.Contact -> CONTACT
414 [main] INFO org.hibernate.cfg.Configuration - Hibernate Validator not found: ignoring
417 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
423 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
424 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 10
424 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
429 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/hibernatetutorial
430 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=****}
778 [main] INFO org.hibernate.cfg.SettingsFactory - Database ->
name : MySQL
version : 5.1.41
major : 5
minor : 1
778 [main] INFO org.hibernate.cfg.SettingsFactory - Driver ->
name : MySQL-AB JDBC Driver
version : mysql-connector-java-5.1.14 ( Revision: ${bzr.revision-id} )
major : 5
minor : 1
803 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLDialect
815 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
816 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
816 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
816 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
816 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
816 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
817 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
817 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
817 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
817 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
817 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
817 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
817 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
826 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
826 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
829 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
829 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
829 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
829 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
829 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
829 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
830 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
830 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
833 [main] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
833 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
833 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
833 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
833 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
833 [main] INFO org.hibernate.cfg.SettingsFactory - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
852 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
1096 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
1101 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - Running hbm2ddl schema update
1101 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - fetching database metadata
1104 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - updating schema
1136 [main] INFO org.hibernate.tool.hbm2ddl.TableMetadata - table found: hibernatetutorial.contact
1136 [main] INFO org.hibernate.tool.hbm2ddl.TableMetadata - columns: [id, email, lastname, firstname]
1136 [main] INFO org.hibernate.tool.hbm2ddl.TableMetadata - foreign keys: []
1136 [main] INFO org.hibernate.tool.hbm2ddl.TableMetadata - indexes: [id, primary]
1137 [main] INFO org.hibernate.tool.hbm2ddl.SchemaUpdate - schema update complete
Inserting Record
Done
Hibernate: insert into CONTACT (FIRSTNAME, LASTNAME, EMAIL, ID) values (?, ?, ?, ?)
 
So wie ich das sehe hast du da keine Fehler sondern nur zwei Warnungen wegen veralteten namespaces in den XML-Dateien hibernate.cfg.xml und contact.hbm.xml und ne ganze Menge DEBUG- bzw. INFO-Meldungen, die nur aussagen, was Hibernate so alles tust. Also nichts worüber du dir ernsthafte Sorgen machen solltest, natürlich schadet es nicht die Warnungen zu beheben, deswegen sind sie ja da.

Willst du diese ganzen Meldungen abschalten musst du nur das Logging-Level runter- bzw. hoch-schrauben, zum Beispiel auf Level WARN, da wird nur alles was Warnung oder schlimmer ist, angezeigt. Wo genau du das machen musst, kann ich dir nicht genau sagen, das kommt darauf an was du bzw. Hibernate zum Loggen benutzt.

Gruß
Matt
 
Zuletzt bearbeitet:
Zurück