Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
What to Upload to SlideShare
Next
Download to read offline and view in fullscreen.

Share

Entity Views - Not your father's DTOs @JavaViennaMeetup 2018-12-03

Download to read offline

Many people advise against using the DTO pattern, but often for the wrong reasons.
It is often argued that DTOs are just copies of entities and that they represent unnecessary boilerplate,
but that is only the case for very simple or degenerate synthetic use cases.
When data crosses system boundaries, having DTOs of some sort is unavoidable at some point.
In this talk I will show you how Blaze-Persistence Entity Views makes "DTOs great again".
Entity Views allow you to model your read and write concerns for specific use cases in a clear succinct manner.
The best part is, that this approach will improve performance, reduce the scope of possible errors
and also make your intentions clearer by vastly reducing the amount of code necessary.
Take a look for yourself and see how Blaze-Persistence Entity Views are changing the game.
Brace yourselves for "Not your father's DTOs"!
The demo code can be found in https://github.com/Blazebit/blaze-persistence/tree/master/examples/spring-data-rest

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all
  • yangchsh

    May. 5, 2019

Many people advise against using the DTO pattern, but often for the wrong reasons. It is often argued that DTOs are just copies of entities and that they represent unnecessary boilerplate, but that is only the case for very simple or degenerate synthetic use cases. When data crosses system boundaries, having DTOs of some sort is unavoidable at some point. In this talk I will show you how Blaze-Persistence Entity Views makes "DTOs great again". Entity Views allow you to model your read and write concerns for specific use cases in a clear succinct manner. The best part is, that this approach will improve performance, reduce the scope of possible errors and also make your intentions clearer by vastly reducing the amount of code necessary. Take a look for yourself and see how Blaze-Persistence Entity Views are changing the game. Brace yourselves for "Not your father's DTOs"! The demo code can be found in https://github.com/Blazebit/blaze-persistence/tree/master/examples/spring-data-rest

Views

Total views

501

On Slideshare

0

From embeds

0

Number of embeds

157

Actions

Downloads

9

Shares

0

Comments

0

Likes

1

×