Hi I have an entity which maps from view in particular schema. Class definition:
@Entity
@Table(name = "VIEW_NAME", schema = "MY_SCHEMA")
public class MyEntity implements Serializable {
}
If I specify schema right on my MyEntity class everything woks it fetches records from database, but i wan't it to be more flexible and configurable from properties. I tried adding property to my properties file: spring.datasource.jpa.properties.hibernate.default_schema: MY_SCHEMA
It doesn't work when i try to fetch i get an exception:
java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist
Did i used wrong property ? Is there another way to change schema dynamically on entity ?