Including Only Certain Columns from Child in Parent Entity

Hi,

Going on your suggestion I have been looking into Blaze Persistence, but I’m having trouble getting things started. I have added the maven dependencies to my Spring Boot application and am now trying to add the CriteriaBuilderFactory per the Spring instructions (section 1.2.4) of the documentation (Blaze Persistence - Criteria API for JPA backends).

The documentation isn’t clear as to where that code snippet is supposed to go, or what libraries to import in the class in order to make it work. Further, should this code go within my main startup class, or a separate class? I do not possess a deep understanding of Java so I apologize if my questions seem simple.

Thanks!