Closed cloner1998 closed 3 months ago
I think it's reasonable, it's a valid use case to map the same table to different entities (full and brief). BTW, It's not handled by Spring Data JPA but JPA implementation such as Hibernate and EclipseLink.
As @quaff correctly noted this issue is in the realm of the JPA implementation, and not of Spring Data.
thank you for correcting me have a good day
Hello, I accidentally had two entities with the same table name (actually one without explicit Table annotation) and jpa without warning created a table that emerged from merging all columns of both entities (and unusable as it's firing wrong insert queries with fewer arguments than required - so it's not a merge)
I don't know if this is expected behavior or not but I was expecting a fail-fast behavior
here is my example:
which result in
thanks in advance