This content has been marked as final.
Show 2 replies
-
1. Re: wildfly 11.0.0.Final Hibernate 5.1 Entity mapping doe not seem to honor schema parameter in @Table annotation
yangju Nov 17, 2017 11:30 AM (in response to yangju)It turns out @Table annotation in my Entity class is JPA annotation and not Hibernate's.
After I prefix my table name with schema name such as:
@Entity
@Table(name = "schemaB.ObjectB")public class B {
}
Then the joins between schemaA.A with schemaB.B work.
Just curious that why my original code worked in wildfly 8.2 but not in wildfly 11.
Is it because the newer JPA ignores the "schema" parameter in @Table annotation now?
-
2. Re: wildfly 11.0.0.Final Hibernate 5.1 Entity mapping doe not seem to honor schema parameter in @Table annotation
jaikiran Nov 22, 2017 7:50 AM (in response to yangju)I'm not sure why it wouldn't work in WildFly 11. This looks a bit more closer to Hibernate itself than WildFly. Can you ask this question in the hibernate forum here Hibernate Community • View forum - Hibernate Users and see if someone there can figure out if this is a bug?