lookup.addFieldMappingFactory(float.class, new JdbcBinaryValueMapper.Factory(Defaults.TYPE_FLOAT()));
lookup.addFieldMappingFactory(double.class, new JdbcBinaryValueMapper.Factory(Defaults.TYPE_DOUBLE()));
lookup.setReferenceFieldMappingFactory(new JdbcObjectReferenceFieldMapping.Factory());
lookup.setObjectReferenceMappingfactory(new JdbcObjectReferenceMappingFactory());
}