How to access specific schemes in spring sleep mode?

I am using Hibernate-Spring and I am trying to access a specific schema in db but don't know how to do it. The name of the table does not do the trick. I was hoping the annotation would help, but so far this is not the case. Note. I am not trying to create a scheme, I just want to access it. I am using Spring 2.5.

+4
source share
1 answer

Define the schema in your mappings:

@Table(name="myentity", schema="some") <class name="MyEntity" table="myentity" schema="some"> 

or use the default value:

 hibernate.default_schema="some" 
+7
source

All Articles