-
Notifications
You must be signed in to change notification settings - Fork 356
Entity with nested entity using @Embedded - nested entity not persisted #1565
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
After further investigation, the issue is apparently the 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. |
schauder
added a commit
that referenced
this issue
Jul 17, 2024
Make test methods package private. See #1565
schauder
added a commit
that referenced
this issue
Jul 17, 2024
JdbcRepositoryEmbeddedIntegrationTests no longer runs for all databases, since it doesn't tests anything specific to differen RDBMSs. Therefore the test also got renamed. See #1565
schauder
added a commit
that referenced
this issue
Jul 17, 2024
Make test methods package private. See #1565
schauder
added a commit
that referenced
this issue
Jul 17, 2024
schauder
added a commit
that referenced
this issue
Jul 17, 2024
JdbcRepositoryEmbeddedIntegrationTests no longer runs for all databases, since it doesn't tests anything specific to differen RDBMSs. Therefore the test also got renamed. See #1565
schauder
added a commit
that referenced
this issue
Jul 17, 2024
Make test methods package private. See #1565
schauder
added a commit
that referenced
this issue
Jul 17, 2024
schauder
added a commit
that referenced
this issue
Jul 17, 2024
JdbcRepositoryEmbeddedIntegrationTests no longer runs for all databases, since it doesn't tests anything specific to differen RDBMSs. Therefore the test also got renamed. See #1565
Thanks, that's fixed. |
schauder
added a commit
that referenced
this issue
Jul 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: