wood burning stoves 2.0*
The moose likes EJB and other Java EE Technologies and the fly likes Problem with schema/postgres Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Problem with schema/postgres" Watch "Problem with schema/postgres" New topic

Problem with schema/postgres

Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754


I am having a problem when the application runs, it creates the table in the right schema, but, the sequence in the public schema.

I do not want to leave the schema in the class. Could some one help me?

I really need to leave the schema configuration in a xml file, this app will run in more then one clients.

I will write bellow the codes:



Even with the hibernate.default_schema is not working. =/



I do not know if here is the right post, if it is not, could the adm please move to the right one? Thanks

[uaiHebert.com] [Full WebApplication JSF EJB JPA JAAS with source code to download] One Table Per SubClass [Web/JSF]
Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Problem resolved.

I putted the the option hibernate.default_schema in the persistence.xml and cleaned the cache! 8)

C ya! \o_
I agree. Here's the link: http://aspose.com/file-tools
subject: Problem with schema/postgres
Similar Threads
just firt web service is working
how to make hbm2ddl.auto work without a hbm.xml file
Memory leak with Hibernate as JPA provider JSE
Tutorial PostgreSQL 8.3 on Glassfish V2.1 for ConnectionPool in Netbeans 6.5.1, WindowsXP (Post 3)
org. postgresql. util. PSQLException: ERROR: relation does not exist