There is a property in spring batch for setting the default schema spring.jpa.properties.hibernate.default_schema=ABC Now this is my entity
@Table("EMPLOYEE")
class Employee{
}
This table is present in schema = DEF and this class is not in my repo and it is coming from another dependency. So I cant add the schema in @Table annotation.
So while inserting the query is
em.persist(employee);
insert into ABC.EMPLOYEE VALUES();
and the table is present in dEF. How do i pass the schema name while doing em.persist? for em the default schema is ABC