How to overrides Entity field in tests with Spring boot v4 + Hibernate
I wanna test a PostEntity without removing the next code:
@CreatedBy // Have to remove these ", nullable = false, insertable = false, updatable = false"
@Column(name = "created_by")
UUID createdBy;
How, with Spring boot + Hibernate + Jakarta, can i override those Column options in integration test ?
In my my PersistPostIT.class, i don't wanna :
class PersistPostIT {
@Test
@Disable // You have to remove theses option in PostEntity before ", nullable = false, insertable = false, updatable = false"
void shouldSuccessfullyPersistPost (){}
}
Other solution still not working. src/test/resources/META-INF/orm-test.xml