Class ObjectIdMapper

  • All Implemented Interfaces:
    com.rcore.commons.mapper.DataMapper<org.bson.types.ObjectId,​String>, com.rcore.commons.mapper.ExampleDataMapper<org.bson.types.ObjectId,​String>

    @Component
    public class ObjectIdMapper
    extends Object
    implements com.rcore.commons.mapper.ExampleDataMapper<org.bson.types.ObjectId,​String>
    • Constructor Detail

      • ObjectIdMapper

        public ObjectIdMapper()
    • Method Detail

      • inverseMap

        public org.bson.types.ObjectId inverseMap​(String s)
        Specified by:
        inverseMap in interface com.rcore.commons.mapper.ExampleDataMapper<org.bson.types.ObjectId,​String>
      • map

        public String map​(org.bson.types.ObjectId id)
        Specified by:
        map in interface com.rcore.commons.mapper.DataMapper<org.bson.types.ObjectId,​String>