Package org.jongo.marshall.jackson.bson4jackson

Examples of org.jongo.marshall.jackson.bson4jackson.BsonModule


    @Before
    public void setUp() throws Exception {
        ObjectMapper mapper = new ObjectMapper(MongoBsonFactory.createFactory());
        Mapping.Builder builder = new Mapping.Builder(mapper);
        builder.registerModule(new BsonModule());
        builder.addModifier(new PropertyModifier());
        Mapping mapping = builder.build();
        projection = new JacksonProjection(mapper);
    }
View Full Code Here


    private WriterCallback writerCallback;
    private MapperModifier visibilityModifier = new VisibilityModifier();

    public AbstractMappingBuilder() {
        this(new ObjectMapper(MongoBsonFactory.createFactory()));
        registerModule(new BsonModule());
        addModifier(new PropertyModifier());
    }
View Full Code Here

TOP

Related Classes of org.jongo.marshall.jackson.bson4jackson.BsonModule

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.