alebu
Programmer
- Sep 7, 2002
- 46
Hi!
I have database where some tables are owned by different then database owner user. To accesss those tables I need to specify username before tablename. So, simple select looks like : SELECT * FROM <username>.<tablename>.
This is a test database and in production will be used only one user ( database owner ) and ther will be no need to specify table owner. I use hibernate to work with those tables, so my question is:
Can I specify somewhere in hibernate configuration username
to prevent hibernate to use that name in all queries?
Because, currently I got Error:
<tablename> not found. Specify owner.objectname
-----
Using Sybase ASE-12.5 and Hibernate-3.1
I have database where some tables are owned by different then database owner user. To accesss those tables I need to specify username before tablename. So, simple select looks like : SELECT * FROM <username>.<tablename>.
This is a test database and in production will be used only one user ( database owner ) and ther will be no need to specify table owner. I use hibernate to work with those tables, so my question is:
Can I specify somewhere in hibernate configuration username
to prevent hibernate to use that name in all queries?
Because, currently I got Error:
<tablename> not found. Specify owner.objectname
-----
Using Sybase ASE-12.5 and Hibernate-3.1