Closed rdehuyss closed 4 months ago
After further investigation, the issue is apparently the prefix = "address."
with a dot. If the dot is changed to an underscore (prefix = "address_"
), it works.
So, I don't know whether this is intended behaviour?
This is most certainly not the intended behaviour. Do you get an exception, or anything?
No - that's why I thought to report it.
Thanks, that's fixed.
Hi there,
I'm currently creating an app with Spring Boot and Spring Data JDBC. When I use the
@Embedded
for a nested entity, the nested object is not persisted. For entities that have all data in the table, everything is returned correctly. (e.g. if I debug the test and docompanyRepository.findAll()
, theCompany
objects that have been persisted viadata.sql
do have anAddress
).I'm using:
Below a reproducible test case:
schema.sql
data.sql
Company record
Address record
CompanyRepository
Repository Test