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 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
| 16:49:12,792 INFO Environment:570 - Hibernate 3.5.6-Final
16:49:12,796 INFO Environment:603 - hibernate.properties not found
16:49:12,799 INFO Environment:781 - Bytecode provider name : javassist
16:49:12,807 INFO Environment:662 - using JDK 1.4 java.sql.Timestamp handling
16:49:12,946 INFO Configuration:1518 - configuring from resource: /hibernate.cfg.xml
16:49:12,946 INFO Configuration:1495 - Configuration resource: /hibernate.cfg.xml
16:49:13,020 INFO Configuration:655 - Reading mappings from resource : dao/Categorie.hbm.xml
16:49:13,073 INFO HbmBinder:348 - Mapping class: Dao.Categorie -> CATEGORIE
16:49:13,092 INFO HbmBinder:1487 - Mapping collection: Dao.Categorie.produits -> CAT_PROD
16:49:13,093 INFO Configuration:655 - Reading mappings from resource : dao/Produit.hbm.xml
16:49:13,108 INFO HbmBinder:348 - Mapping class: Dao.Produit -> PRODUITS
16:49:13,108 INFO Configuration:1633 - Configured SessionFactory: null
16:49:13,166 INFO DriverManagerConnectionProvider:64 - Using Hibernate built-in connection pool (not for production use!)
16:49:13,166 INFO DriverManagerConnectionProvider:65 - Hibernate connection pool size: 20
16:49:13,166 INFO DriverManagerConnectionProvider:68 - autocommit mode: false
16:49:13,175 INFO DriverManagerConnectionProvider:103 - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/gestprod
16:49:13,176 INFO DriverManagerConnectionProvider:109 - connection properties: {user=root, password=****, pool.size=1}
16:49:13,388 INFO SettingsFactory:117 - RDBMS: MySQL, version: 5.5.8-log
16:49:13,388 INFO SettingsFactory:118 - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.6 ( Revision: ${svn.Revision} )
16:49:13,409 INFO Dialect:206 - Using dialect: org.hibernate.dialect.MySQL5InnoDBDialect
16:49:13,424 INFO JdbcSupportLoader:79 - Disabling contextual LOB creation as JDBC driver reported JDBC version [3] less than 4
16:49:13,430 INFO TransactionFactoryFactory:59 - Using default transaction strategy (direct JDBC transactions)
16:49:13,431 INFO TransactionManagerLookupFactory:80 - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
16:49:13,432 INFO SettingsFactory:169 - Automatic flush during beforeCompletion(): disabled
16:49:13,432 INFO SettingsFactory:173 - Automatic session close at end of transaction: disabled
16:49:13,432 INFO SettingsFactory:180 - JDBC batch size: 15
16:49:13,432 INFO SettingsFactory:183 - JDBC batch updates for versioned data: disabled
16:49:13,433 INFO SettingsFactory:188 - Scrollable result sets: enabled
16:49:13,433 INFO SettingsFactory:196 - JDBC3 getGeneratedKeys(): enabled
16:49:13,433 INFO SettingsFactory:204 - Connection release mode: auto
16:49:13,434 INFO SettingsFactory:228 - Maximum outer join fetch depth: 2
16:49:13,434 INFO SettingsFactory:231 - Default batch fetch size: 1
16:49:13,434 INFO SettingsFactory:235 - Generate SQL with comments: disabled
16:49:13,435 INFO SettingsFactory:239 - Order SQL updates by primary key: disabled
16:49:13,435 INFO SettingsFactory:243 - Order SQL inserts for batching: disabled
16:49:13,435 INFO SettingsFactory:410 - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
16:49:13,437 INFO ASTQueryTranslatorFactory:47 - Using ASTQueryTranslatorFactory
16:49:13,437 INFO SettingsFactory:251 - Query language substitutions: {}
16:49:13,437 INFO SettingsFactory:256 - JPA-QL strict compliance: disabled
16:49:13,437 INFO SettingsFactory:261 - Second-level cache: enabled
16:49:13,438 INFO SettingsFactory:265 - Query cache: disabled
16:49:13,441 INFO SettingsFactory:395 - Cache region factory : org.hibernate.cache.impl.bridge.RegionFactoryCacheProviderBridge
16:49:13,441 INFO RegionFactoryCacheProviderBridge:61 - Cache provider: org.hibernate.cache.EhCacheProvider
16:49:13,446 INFO SettingsFactory:275 - Optimize cache for minimal puts: disabled
16:49:13,446 INFO SettingsFactory:284 - Structured second-level cache entries: disabled
16:49:13,450 INFO SettingsFactory:304 - Echoing all SQL to stdout
16:49:13,451 INFO SettingsFactory:313 - Statistics: disabled
16:49:13,451 INFO SettingsFactory:317 - Deleted entity synthetic identifier rollback: disabled
16:49:13,451 INFO SettingsFactory:332 - Default entity-mode: pojo
16:49:13,451 INFO SettingsFactory:336 - Named query checking : enabled
16:49:13,451 INFO SettingsFactory:340 - Check Nullability in Core (should be disabled when Bean Validation is on): enabled
16:49:13,479 INFO SessionFactoryImpl:199 - building session factory
16:49:13,517 DEBUG CacheManager:553 - Configuring ehcache from classpath.
16:49:13,524 WARN ConfigurationFactory:134 - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Users/azerty/.m2/repository/net/sf/ehcache/ehcache-core/2.4.3/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
16:49:13,524 DEBUG ConfigurationFactory:96 - Configuring ehcache from URL: jar:file:/C:/Users/azerty/.m2/repository/net/sf/ehcache/ehcache-core/2.4.3/ehcache-core-2.4.3.jar!/ehcache-failsafe.xml
16:49:13,525 DEBUG ConfigurationFactory:148 - Configuring ehcache from InputStream
16:49:13,549 DEBUG BeanHandler:271 - Ignoring ehcache attribute xmlns:xsi
16:49:13,549 DEBUG BeanHandler:271 - Ignoring ehcache attribute xsi:noNamespaceSchemaLocation
16:49:13,550 DEBUG DiskStoreConfiguration:118 - Disk Store Path: C:\Users\azerty\AppData\Local\Temp\
16:49:13,578 DEBUG PropertyUtil:88 - propertiesString is null.
16:49:13,581 DEBUG ConfigurationHelper:184 - No CacheManagerEventListenerFactory class specified. Skipping...
16:49:13,627 DEBUG Cache:949 - No BootstrapCacheLoaderFactory class specified. Skipping...
16:49:13,627 DEBUG Cache:923 - CacheWriter factory not configured. Skipping...
16:49:13,629 DEBUG ConfigurationHelper:96 - No CacheExceptionHandlerFactory class specified. Skipping...
16:49:13,799 INFO SessionFactoryObjectFactory:105 - Not binding factory to JNDI, no JNDI name configured
16:49:13,803 INFO SchemaValidator:121 - Running schema validator
16:49:13,803 INFO SchemaValidator:129 - fetching database metadata
16:49:13,806 INFO DatabaseMetadata:119 - table not found: CATEGORIE
Initial SessionFactory creation failed.org.hibernate.HibernateException: Missing table: CATEGORIE
Exception in thread "main" java.lang.ExceptionInInitializerError
at Util.HibernateUtil.<clinit>(HibernateUtil.java:20)
at Dao.Service.addProduit(Service.java:9)
at Util.Test.main(Test.java:20)
Caused by: org.hibernate.HibernateException: Missing table: CATEGORIE
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1171)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:139)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:389)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1385)
at Util.HibernateUtil.<clinit>(HibernateUtil.java:16)
... 2 more |