Scenario:
Parent entity A contains an embedded entity B which has the following field:
@Column(nullable = true, scale = 3, precision = 6) public BigDecimal test;
Expected behaviour: initialization should fail completely, yet initialization is successful without any errors. In this case whole parent entity A is not created at all. Any child entity referencing parent entity A is created with proper ID fields but with them set to null.
If having the definition inside the parent entity A, then parent entity is created successfully, but without the field, again, without any error. Functionality wise, this should be a initialization failure at startup since the application will fail anyway when first usage.
|
|