Interface StudentEntityMapper
public interface StudentEntityMapper
A mapper interface for converting between Student domain model and Student JPA-entity. Uses MapStruct for automatic mapping.
-
Method Summary
Modifier and TypeMethodDescriptionstudentEntityToStudent
(StudentEntity studentEntity) Converts aStudentEntity
toStudent
.studentToStudentEntity
(Student student) Converts aStudent
toStudentEntity
.
-
Method Details
-
studentEntityToStudent
Converts aStudentEntity
toStudent
.- Parameters:
studentEntity
- the student entity to convert- Returns:
- the
Student
domain model
-
studentToStudentEntity
Converts aStudent
toStudentEntity
.- Parameters:
student
- the student domain model to convert- Returns:
- the
StudentEntity
JPA-entity
-