io.katharsis.jpa.mapping.IdentityMapper Maven / Gradle / Ivy
package io.katharsis.jpa.mapping;
import io.katharsis.jpa.query.Tuple;
public class IdentityMapper implements JpaMapper {
private IdentityMapper() {
}
public static final IdentityMapper newInstance() {
return new IdentityMapper<>();
}
@SuppressWarnings("unchecked")
@Override
public E map(Tuple tuple) {
return (E) tuple.get(0, Object.class);
}
@Override
public E unmap(E dto) {
return dto;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy