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

com.google.code.morphia.mapping.CustomMapper Maven / Gradle / Ivy

package com.google.code.morphia.mapping;


import java.util.Map;

import com.google.code.morphia.mapping.cache.EntityCache;
import com.mongodb.DBObject;


/**
 * A CustomMapper if one that implements the methods needed to map to/from POJO/DBObject
 *
 * @author skot
 */
public interface CustomMapper {
  void toDBObject(Object entity, MappedField mf, DBObject dbObject, Map involvedObjects, Mapper mapper);

  void fromDBObject(DBObject dbObject, MappedField mf, Object entity, EntityCache cache, Mapper mapper);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy