Bonjour,
J'ai mis en place hibernate dans un projet, et spécialement hibernate ant tools.
Afin de tester l'outil, j'ai crée une table avec l'annotation @Entity de javax.persistence, tout se passe bien, hibernate se connect à la base, mais la table n'est pas crée, peut être ai-je oublié queque chose ?
voici les traces de hibernate :
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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
 
updateSchemaJPA:
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2ddl (Generates database schema)
[hibernatetool] 13:45:41,733  INFO Version:37 – Hibernate Commons Annotations 3.2.0.Final
[hibernatetool] 13:45:41,746  INFO Environment:593 – Hibernate 3.6.1.Final
[hibernatetool] 13:45:41,750  INFO Environment:626 – hibernate.properties not found
[hibernatetool] 13:45:41,754  INFO Environment:804 – Bytecode provider name : javassist
[hibernatetool] 13:45:41,760  INFO Environment:685 – using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 13:45:41,868  INFO Configuration:2184 – configuring from file: hibernate.cfg.xml
[hibernatetool] 13:45:41,909  WARN DTDEntityResolver:73 – recognized obsolete hibernate namespace http://hibernate.sourceforge.net/. Use namespace http://www.hibernate.org/dtd/ instead. Refer to Hibernate 3.6 Migration Guide!
[hibernatetool] 13:45:41,948  INFO Configuration:2267 – Configured SessionFactory: null
[hibernatetool] 13:45:42,021  INFO Configuration:1646 – Hibernate Validator not found: ignoring
[hibernatetool] 13:45:42,043  INFO Dialect:135 – Using dialect: org.hibernate.dialect.PostgreSQLDialect
[hibernatetool] 13:45:42,070  INFO SchemaUpdate:155 – Running hbm2ddl schema update
[hibernatetool] 13:45:42,071  INFO SchemaUpdate:167 – fetching database metadata
[hibernatetool] 13:45:42,075  INFO DriverManagerConnectionProvider:64 – Using Hibernate built-in connection pool (not for production use!)
[hibernatetool] 13:45:42,076  INFO DriverManagerConnectionProvider:65 – Hibernate connection pool size: 20
[hibernatetool] 13:45:42,076  INFO DriverManagerConnectionProvider:68 – autocommit mode: true
[hibernatetool] 13:45:42,089  INFO DriverManagerConnectionProvider:103 – using driver: org.postgresql.Driver at URL: jdbc:postgresql://localhost:5400/poker
[hibernatetool] 13:45:42,091  INFO DriverManagerConnectionProvider:109 – connection properties: {user=postgres, password=****, autocommit=true}
[hibernatetool] 13:45:42,320  INFO SchemaUpdate:179 – updating schema
[hibernatetool] 13:45:42,325  INFO SchemaUpdate:217 – schema update complete
[hibernatetool] 13:45:42,330  INFO DriverManagerConnectionProvider:170 – cleaning up connection pool: jdbc:postgresql://localhost:5400/poker
BUILD SUCCESSFUL
Total time: 2 seconds