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());