Skip to content

fix: implement StudentMapper with MapStruct annotations#469

Open
Alex-Solod wants to merge 1 commit intomate-academy:mainfrom
Alex-Solod:jv-spring-boot-mapstruct-hw-01
Open

fix: implement StudentMapper with MapStruct annotations#469
Alex-Solod wants to merge 1 commit intomate-academy:mainfrom
Alex-Solod:jv-spring-boot-mapstruct-hw-01

Conversation

@Alex-Solod
Copy link

  • Add @Mapper annotation with Spring component model
  • Implement mapping methods with proper @mapping annotations
  • Add mapToGroup() helper method for Group ID to Group entity conversion
  • Add mapToSubject() helper method for Subject ID to Subject entity conversion
  • Add mapToSubjectId() helper method for Subject to ID conversion
  • Ignore unmapped fields (id, socialSecurityNumber) in toModel mapping

- Add @Mapper annotation with Spring component model
- Implement mapping methods with proper @mapping annotations
- Add mapToGroup() helper method for Group ID to Group entity conversion
- Add mapToSubject() helper method for Subject ID to Subject entity conversion
- Add mapToSubjectId() helper method for Subject to ID conversion
- Ignore unmapped fields (id, socialSecurityNumber) in toModel mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant