October 2018
Intermediate to advanced
982 pages
23h 29m
English
So far, we have been dabbling with Spring Data using our sample domain of employees. We need to shift our focus back to the social media platform that we started building in the previous chapter.
Before we can work on a reactive repository, we need to revisit the Image domain object we defined in the last chapter. Let's adjust it so that it works nicely with MongoDB:
@Data
@Document
public class Image {
@Id final private String id;
final private String name;
}
This preceding definition is almost identical to what we saw in the previous chapter, with the following differences:
Read now
Unlock full access