Viblo
  • Posts
  • Questions
  • Discussions
Announcements
No announcement yet.
All Announcements
en
  • Tiếng Việt
  • English
  • Viblo
  • Viblo Code
  • Viblo CTF
  • Viblo CV
  • Viblo Learning
  • Viblo Partner
  • Viblo Battle
  • new
    Viblo Interview
new
Avatar

Nam Pham

@npham

Report
  • Posts
  • Series
  • Questions
  • Answers
  • Bookmarks
  • Followings
  • Followers
  • Tags
  • Reputations
  • Communication

Làm cách nào để tạo 1 class mapper chung cho toàn bộ model

Avatar
Nam Pham
Answered Jul 2nd, 2021 5:39 a.m.

Mình nghĩ mỗi cặp DTO và Entity nên có một mapper riêng.

0

Map DTO to Entity và ngược lại trong Java Spring

Avatar
Nam Pham
Answered Jul 2nd, 2021 5:37 a.m.

Bên C# có AutoMapper. Mình search Google cho Java Spring thì có cái tương tự, bạn tham khảo nha. https://www.baeldung.com/entity-to-and-from-dto-for-a-java-spring-application

+2

Total post views

1.9K

Reputations

48

Following tags

0

Following users

0

Followers

1

Posts

2

Bookmarks

1

Total questions

4

Total answers

2

Organizations


Have no organizations yet.

Posts tendency


Resources

  • Posts
  • Organizations
  • Questions
  • Tags
  • Videos
  • Authors
  • Discussions
  • Recommend System
  • Tools
  • Machine Learning
  • System Status

Services

  • Viblo Viblo
  • Viblo Code Viblo Code
  • Viblo CTF Viblo CTF
  • Viblo CV Viblo CV
  • Viblo Learning Viblo Learning
  • Viblo Partner Viblo Partner
  • Viblo Battle Viblo Battle
  • Viblo Interview Viblo Interview

Mobile App

Get it on Google Play Download on the App Store
QR code

Links

  • Atom Icon

© 2025 Viblo. All rights reserved.

  • About Us
  • Feedback
  • Help
  • FAQs
  • RSS
  • Terms
  • DMCA.com Protection Status
Viblo
Let's register a Viblo Account to get more interesting posts.
Register