Package org.monjo.example

Examples of org.monjo.example.ListWithin.addName()


  }

  @Test
  public void shouldSaveElementWithStringList(){
    ListWithin pojo = new ListWithin();
    pojo.addName(42);
    pojo.addName(43);
   
    Monjo<ObjectId, ListWithin> monjo = new Monjo<ObjectId, ListWithin>(getMongoDB(), ListWithin.class);
    ObjectId objectId = monjo.save(pojo);
    ListWithin listWithin = monjo.findOne(objectId);
View Full Code Here


  @Test
  public void shouldSaveElementWithStringList(){
    ListWithin pojo = new ListWithin();
    pojo.addName(42);
    pojo.addName(43);
   
    Monjo<ObjectId, ListWithin> monjo = new Monjo<ObjectId, ListWithin>(getMongoDB(), ListWithin.class);
    ObjectId objectId = monjo.save(pojo);
    ListWithin listWithin = monjo.findOne(objectId);
    List<String> strings = listWithin.getNames();
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.