File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Problem with schema/postgres" Watch "Problem with schema/postgres" New topic
Author

Problem with schema/postgres

Hebert Coelho
Ranch Hand

Joined: Jul 14, 2010
Posts: 754

Hello.

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:

sun-resources.xml



persistence.xml


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

hibernate.cfg.xml


thanks

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://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Problem with schema/postgres
 
Similar Threads
Tutorial PostgreSQL 8.3 on Glassfish V2.1 for ConnectionPool in Netbeans 6.5.1, WindowsXP (Post 3)
Memory leak with Hibernate as JPA provider JSE
just firt web service is working
how to make hbm2ddl.auto work without a hbm.xml file
org. postgresql. util. PSQLException: ERROR: relation does not exist