Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug when database is update's mode #202

Open
jeansebbaklouti opened this issue Jul 1, 2013 · 2 comments
Open

Bug when database is update's mode #202

jeansebbaklouti opened this issue Jul 1, 2013 · 2 comments
Assignees
Milestone

Comments

@jeansebbaklouti
Copy link

Hi all!

when an application is in Update's mode with Postgres, if a table with the same name exists in other schema, the table is not create in the schema of the application.

For example, an application uses a schema called "schemaa" with a table called "tablea",
"tablea" is well created in the "schemaa".

Another application is launched on the same database but with a different schema called "schemab" and with a table called "tablea".

Hibernate thinks that the table exists in the "schemab" but it only exists in "schemaa".So it does not create the table in the "schemab".

I think in update's mode, when hibernate check if the table exists, it does not specify the schema.

dataSource.url=jdbc:postgresql://myserver:5432/mydatabase?searchpath=myschema

dataSource.driverClassName=org.postgresql.Driver
hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
hibernate.hbm2ddl.auto=update

driver postgres's version : 9.1-903.jdbc4

regards
Jean-Sébastien

@ghost ghost assigned sdeleuze Jul 2, 2013
@sdeleuze
Copy link
Member

sdeleuze commented Jul 2, 2013

I begin to work on this issue.

@sdeleuze
Copy link
Member

sdeleuze commented Jul 3, 2013

Issue confirmed and reported to Hibernate guys : https://hibernate.atlassian.net/browse/HHH-8348

@ghost ghost assigned bmeurant Dec 23, 2013
@bmeurant bmeurant modified the milestones: 2.2.1, 2.2.0 Oct 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants