spring-projects / spring-projects/spring-data-commons

Repository Populator support for referenced objects [DATACMNS-396]

Open
#865 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

status: ideal-for-contribution type: enhancement
Dominant language
Java
Stars
838
Forks
730
PR merge metrics
No merged PRs in 30d

Description

Rob Winch opened DATACMNS-396 and commented

The Repository Populators are limitted due to the fact that they cannot reference other domain objects. For example, if I have the following:

class Message {
  @OneToOne
  private User user;
  // ...
}

There is no way to import a Message that contains a User


No further details from DATACMNS-396

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Repository Populators documentation linked in the issue and locate the corresponding implementation in spring-data-commons. Define how referenced Message and User objects should be represented and persisted, then add tests showing that a Message containing a User can be imported successfully.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.