oop - Business objects (DTO) in Spring Data JPA -
by default spring data repositories process database entities. please, suggest standard approach of getting same functionality spring data framework, allows operating on business domain objects (dto) instead of entities, , encapsulates dto to/from entity mappings. current obvious options are:
- additional "proxy-wrapper" methods have same names in spring repository accept , return dto types , encapsulate conversions(mappings).
- some clever implementation of previous option using aop less boilerplate code.
both options seem pretty awkward me such standard task. so, assume jut missing here.
Comments
Post a Comment