Bonjour,
je suis débutant en PostgreSQL et Hibernate. Je voulais mapper des entités EJB3 par Hibernate. Mais j'ai un problème de génération automatique des tables.La console de Jboss m'indique que la génération des relations a subi un échec lors de l'ajout des index ou des clés primaires générés automatiquement.
J'utilise JDK1.6 ,PostgreSQL 8.3 avec son connecteur JDBC4.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6 20:19:40,906 INFO [SchemaExport] Running hbm2ddl schema export 20:19:40,906 INFO [SchemaExport] exporting generated schema to database 20:19:40,921 ERROR [SchemaExport] Unsuccessful: create table compte (cid integer not null auto_increment, montant integer, datedmaj varchar(255), USERNAME varchar(15) not null, primary key (cid)) 20:19:40,921 ERROR [SchemaExport] ERROR: syntax error at or near "auto_increment" 20:19:41,031 ERROR [SchemaExport] Unsuccessful: alter table compte add index FKAF3F35C0D1528345 (USERNAME), add constraint FKAF3F35C0D1528345 foreign key (USERNAME) references users (username) 20:19:41,031 ERROR [SchemaExport] ERROR: relation "compte" does not exist
merci d'avance
Partager