All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.katharsis.jpa.mapping.IdentityMapper Maven / Gradle / Ivy

There is a newer version: 3.0.2
Show newest version
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