oracle exposes many weird things in their default metadata ;)
you can work around it by setting hibernate.default_schema and we will only look at that.
I tried adding the database name in the Generate entities dialog box, and also modified the connection string to TESTUSER@localhost:1521:XE
But, as you can see, there is not exactly a db name, but a user that can access some tables in a table space.
So, I'm not really sure what should I set on the database field: the tablespace, the user, or, modifying the connection string.
In oracle username == schema
Thanks for your time. I still can't get it to function, but I get the error notification much faster than before.
I have set the following config for the driver:
conn url = jdbc:oracle:thin:@localhost:1521:XE
db name = TESTUSER
driver class = oracle.jdbc.driver.OracleDriver
user id = TESTUSER
and for the jdbc conn properties
db = TESTUSER
url = jdbc:oracle:thin:@localhost:1521:XE
user = TESTUSER
the jar where is pointing to the driver is oracles ojdbc14.jar
im not talking about the database connection - i'm talking about the default schema setting in hibernate.
hibernate.default_schema in cfg.xml or persistence.xml.
Thank you a lot!!!
I didn't understand it was a property,
but now it worked perfectly!!!
glad to be of help