Package org.monjo.example

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


  }
 
  @Test
  public void shouldSaveElementWithIntegerList(){
    ListWithin pojo = new ListWithin();
    pojo.addGroup(10);
    pojo.addGroup(20);
   
    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 shouldSaveElementWithIntegerList(){
    ListWithin pojo = new ListWithin();
    pojo.addGroup(10);
    pojo.addGroup(20);
   
    Monjo<ObjectId, ListWithin> monjo = new Monjo<ObjectId, ListWithin>(getMongoDB(), ListWithin.class);
    ObjectId objectId = monjo.save(pojo);
    ListWithin listWithin = monjo.findOne(objectId);
    List<Integer> integers = listWithin.getGroups();
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.