Package com.github.jmkgreen.morphia.mapping

Examples of com.github.jmkgreen.morphia.mapping.MappedClass.update()


  public void testExternalMapping() throws Exception {
    Mapper mapr = morphia.getMapper();
    ExternalMapperExtTest.CloneMapper helper = new CloneMapper(mapr);
    helper.map(Skeleton.class, EntityWithNoAnnotations.class);
    MappedClass mc = mapr.getMappedClass(EntityWithNoAnnotations.class);
    mc.update();
    assertNotNull(mc.getIdField());
    assertNotNull(mc.getEntityAnnotation());
    Assert.assertEquals("special", mc.getEntityAnnotation().value());

    EntityWithNoAnnotations ent = new EntityWithNoAnnotations();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.