Interface TutorEntityMapper
public interface TutorEntityMapper
A mapper interface for converting between Tutor domain model and Tutor JPA-entity. Uses MapStruct for automatic mapping.
-
Method Summary
Modifier and TypeMethodDescriptiontoTutor
(TutorEntity tutorEntity) Converts aTutorEntity
toTutor
.toTutorEntity
(Tutor tutor) Converts aTutor
toTutorEntity
.
-
Method Details
-
toTutorEntity
Converts aTutor
toTutorEntity
.- Parameters:
tutor
- the tutor domain model to convert- Returns:
- the
TutorEntity
JPA-entity
-
toTutor
Converts aTutorEntity
toTutor
.- Parameters:
tutorEntity
- the tutor entity to convert- Returns:
- the
Tutor
domain model
-