Skip to content

Commit

Permalink
refactor: (#34) 임시 Null 허용
Browse files Browse the repository at this point in the history
  • Loading branch information
khcho0125 committed Sep 14, 2022
1 parent 9ae80d2 commit cc06e4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package team.comit.simtong.persistence
**/
interface GenericMapper<E, D> {

fun toEntity(model: D?): E?
fun toEntity(model: D): E

fun toDomain(entity: E?): D?
fun toDomain(entity: E): D
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,9 @@ import team.comit.simtong.persistence.auth.entity.AuthCodePolicyEntity
* @version 1.0.0
**/
@Mapper
interface AuthCodePolicyMapper : GenericMapper<AuthCodePolicyEntity, AuthCodePolicy> {
abstract class AuthCodePolicyMapper : GenericMapper<AuthCodePolicyEntity, AuthCodePolicy> {

abstract fun toDomain(entity: AuthCodePolicyEntity?): AuthCodePolicy?

abstract fun toEntity(domain: AuthCodePolicy?): AuthCodePolicyEntity?
}

0 comments on commit cc06e4d

Please sign in to comment.