Package com.otakingex.fourtypes.model

Examples of com.otakingex.fourtypes.model.PersonalSummary


    return manager;
  }
 
  public void doStore(WorkoutContext con){
    if(!store) return;
    PersonalSummary sum = new PersonalSummary();
    User user = con.getUser();
    sum.setName(user.getName());
    sum.setAge(user.getAge());
    sum.setMale(user.isMale());
    sum.setKingOrSolderScore(con.getScholarOrCraftsmanScore());
    sum.setScholarOrCraftsmanScore(con.getScholarOrCraftsmanScore());
    sum.setKingScore(con.getKingScore());
    sum.setSolderScore(con.getSolderScore());
    sum.setScholarScore(con.getScholarScore());
    sum.setCraftsmanScore(con.getCraftsmanScore());
    PersistenceManagerFactory pmf = PMF.get();
    PersistenceManager pm = pmf.getPersistenceManager();
    try{
      pm.makePersistent(sum);
      //log.info("Result:" +sum.toString());
View Full Code Here

TOP

Related Classes of com.otakingex.fourtypes.model.PersonalSummary

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.