Exemplo n.º 1
0
 void fromDBObject(final DBObject dbObject, final MappedField mf, final Object entity) {
   try {
     converters.fromDBObject(dbObject, mf, entity);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }
Exemplo n.º 2
0
 void toDBObject(
     final Object entity, final MappedField mf, final DBObject dbObject, MapperOptions opts) {
   try {
     converters.toDBObject(entity, mf, dbObject, opts);
   } catch (Exception e) {
     throw new RuntimeException(e);
   }
 }