Skip to content

Instantly share code, notes, and snippets.

@truongquoc
Created January 10, 2024 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truongquoc/e851810194f04b5cc6a1daa17c885d49 to your computer and use it in GitHub Desktop.
Save truongquoc/e851810194f04b5cc6a1daa17c885d49 to your computer and use it in GitHub Desktop.
mapper entity in java
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