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:

  1. additional "proxy-wrapper" methods have same names in spring repository accept , return dto types , encapsulate conversions(mappings).
  2. 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

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -