This is the heart of Morphia and takes care of mapping from/to POJOs/DBObjects
This class is thread-safe and keeps various "cached" data which should speed up processing.
979899100101102103104
print(e); } @Test(expected=MappingException.class) public void getKeyWithNullThrowsException() throws MappingException { Mapper mapper = new DefaultMapper(); Key<Employee> result = mapper.getKey(null); }
73747576777879808182
* Construct a new instance using the DefaultMapper with the supplied classes to map. * * @param classesToMap */ public Morphia(Set<Class> classesToMap) { this.mapper = new DefaultMapper(); for (Class c : classesToMap) { map(c); } }