Use DTO instead of Model and Entity objects

  Рет қаралды 21,129

Java Master

Java Master

2 жыл бұрын

In this video, we try to understand why using DTO classes is important. And why using entity objects is not ok when passing data through different layers.

Пікірлер: 13
@breakpoint6824
@breakpoint6824 11 ай бұрын
I found this video after watching several videos and losing time. This video has direct explanation with a simple and proper example. Thank you
@cod3rhandl3it
@cod3rhandl3it Жыл бұрын
This is a solid video regarding DTOs over Entities, using code examples and succinct descriptions for some primary reasons DTOs should be used over Entities. Much better than other videos I've found on KZbin. Thank you for contributing to the coding community.
@hihihaha3756
@hihihaha3756 Жыл бұрын
This has been the best explanation / code demostration regarding the subject I have found until now. Kudos
@sagi33delriego82
@sagi33delriego82 Жыл бұрын
Excellent , Thanks for public this video , I'm was learn today very much.
@riki2404
@riki2404 Жыл бұрын
Thank you for the video. Got a good understanding of the concept.
@bibekk
@bibekk 4 күн бұрын
Good
@user-vi9nu9ew1z
@user-vi9nu9ew1z Жыл бұрын
As far as I understand, there may also be a situation when you need to pass an object containing fields that are not in the model
@wh0hoo
@wh0hoo 2 жыл бұрын
One might add that it is a good practice to use static constructors instead of such converters.
@sergeykuznetsov3249
@sergeykuznetsov3249 Жыл бұрын
You probably meant Static factory methods, but still not clear about the advantages of such approach
@user-zh6ei3xh8f
@user-zh6ei3xh8f 2 жыл бұрын
Thank you!
@osean186
@osean186 Жыл бұрын
Will the use of a DTO like this add to the memory load when there is a lot of data? Because after we get data from database, we do map again to DTO class. Thank you
@alexandrazamfir548
@alexandrazamfir548 Жыл бұрын
do you have also the source code ?...
@mysocial
@mysocial Жыл бұрын
Why you use public in your DTO ?
JAVA DTO Pattern Tutorial | Simplify Your Code
19:12
Amigoscode
Рет қаралды 197 М.
Why use DTOs (Data Transfer Objects)?
7:23
CodeOpinion
Рет қаралды 73 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН
Как бесплатно замутить iphone 15 pro max
00:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 8 МЛН
小宇宙竟然尿裤子!#小丑#家庭#搞笑
00:26
家庭搞笑日记
Рет қаралды 10 МЛН
НЫСАНА КОНЦЕРТ 2024
2:26:34
Нысана театры
Рет қаралды 1,4 МЛН
How To Use DTOs In .NET REST APIs
14:18
Julio Casal
Рет қаралды 16 М.
Integration Tests with WireMock and Spring Boot
55:11
Java Master
Рет қаралды 2,8 М.
The 3 Biggest Mistakes of Object Mapping in .NET
11:33
Nick Chapsas
Рет қаралды 63 М.
Learn how Spring Boot Model Mapper works Fast and Simple
20:55
Fast and Simple Development
Рет қаралды 23 М.
Why to use DTO (Data Transfer Objects)
11:02
Study Mash
Рет қаралды 31 М.
Don't Use AutoMapper in C#! Do THIS Instead!
16:17
Codewrinkles
Рет қаралды 67 М.
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 725 М.
Llegó al techo 😱
00:37
Juan De Dios Pantoja
Рет қаралды 58 МЛН