Created
January 10, 2024 15:57
-
-
Save truongquoc/e851810194f04b5cc6a1daa17c885d49 to your computer and use it in GitHub Desktop.
mapper entity in java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.core.platform.mapper; | |
import com.core.platform.entity.EntityType; | |
import com.core.platform.model.Model; | |
public interface Mapper<TModel extends Model, TEntity extends EntityType> { | |
TEntity modelToEntity(TModel model); | |
TModel entityToModel(TEntity entity); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment