File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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

[] [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:
subject: Problem with schema/postgres
Similar Threads
how to make work without a hbm.xml file
just firt web service is working
org. postgresql. util. PSQLException: ERROR: relation does not exist
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)