Skip to content

Support entity references [DATAJDBC-112] #346

@spring-projects-issues

Description

@spring-projects-issues

Jens Schauder opened DATAJDBC-112 and commented

If an entity references another entity the referenced entity should get persisted with the original entity.

So:

 LegoSet set = new LegoSet("Awesome Truck");
 set.setManual(new Manual("Just plug everything together"));

 repository.save(set)

should result in two inserts. One into the table LegoSet, the other into the table Manual


Referenced from: pull request #9

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions