-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: problems with hibernate and postgres
PostPosted: Wed Dec 03, 2003 8:42 am 
Newbie

Joined: Wed Dec 03, 2003 8:34 am
Posts: 4
Hi!
I have a little problem with hibernate(2.0.3) and postgres (7.2)
when i use net.sf.hibernate.tool.hbm2ddl.SchemaExport to generate my database
i've used a lot of different drivers JDBC and the result is the same.
It perfectly run with hsqldb (good for test ;-) so i don't think it's a problem of hbm file.
here are some example of the errors :
v.g. :
alter table DOCUMENT drop constraint FK6202C11BED92EF77
Unsuccessful: ERROR: parser: parse error at or near ""

alter table GROUPEPUBLICATION drop constraint FK35123086F73AEE0F
Unsuccessful: ERROR: parser: parse error at or near ""

alter table GROUPEPUBLICATION drop constraint FK35123086B0EF4182
Unsuccessful: ERROR: parser: parse error at or near ""

drop table USER
Unsuccessful: ERROR: parser: parse error at or near "USER"
etc...

my properties are :
hibernate.dialect net.sf.hibernate.dialect.PostgreSQLDialect
hibernate.connection.driver_class org.postgresql.Driver
hibernate.connection.url jdbc:postgresql://lxn15:8000/gedeon

If somebody have an idea...
thanks for help
Pierre-Marin[/i]


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 9:08 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Did you generate the script and apply it manually or let SchemaExport apply it (no script file)?

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 9:16 am 
Newbie

Joined: Wed Dec 03, 2003 8:34 am
Posts: 4
epbernard wrote:
Did you generate the script and apply it manually or let SchemaExport apply it (no script file)?

I let SchemaExport apply it : i just give it as argument the name of path of the hbm file and it call the postgres database and connect to it and send it the script but after come the errors...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 10:43 am 
Newbie

Joined: Wed Dec 03, 2003 8:34 am
Posts: 4
Do not name a table USER in postgres...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 03, 2003 11:11 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
eheh, not only in postgres ;-)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.