aspose file tools*
The moose likes Object Relational Mapping and the fly likes Erro while commit transaction Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Erro while commit transaction" Watch "Erro while commit transaction" New topic
Author

Erro while commit transaction

Euclides Filizola
Greenhorn

Joined: Aug 01, 2009
Posts: 1
So, good afternoon guys, i'm have a little problem. I'm trying to access 2 different databases. One is PostgreSQL and is localhost, the other is SQLServer and is in address 172.31.128.25. Here is my code.

my persistence.xml



So, i have many tables into my db. And i'm testing one that. But it isn't work.

Here my test



Here my methods.







.. The StackTrace



Here says " Caused by: java.sql.SQLException: Invalid object name 'teste.tbsisc_usuario'. "

But this table "teste.tbsisc_usuario" exist.

Anyone understand my problem ?

Just to complet. If i use

...

It work !!! ...

i donĀ“t know ... why !!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Erro while commit transaction
 
Similar Threads
Defining 2 separate databases in persistence.xml
Hibernate: Error getting property 'lastItem'
Hiding password value from persistance.xml
EjbQl Connection problem.......
'hibernate.dialect' must be set when no Connection available