public void saveTs() {
    // loadEx();
    ts.setEmp_ID(usr.getEmp().getEmp_ID());

    for (TimeSheetRow t : ts.getTsRows()) {
      t.setWeek_end_day(ts.getWeek_end_day());
      t.setEmp_ID(usr.getEmp().getEmp_ID());
      t.setApproved(false);
      t.setSigned(false);
    }
    em.merge(ts);
    em.flush();
    //        TimeSheetRowPK pk = new TimeSheetRowPK();
    //        pk.setWeek_end_day(date);
    //        pk.setWp_ID("a1");
    //        pk.setProj_ID(1);
    //        pk.setEmp_ID(2);
    //        TimeSheetRow ts = em.find(TimeSheetRow.class, pk);
  }
 public String loadEx() {
   TypedQuery<TimeSheetRow> q =
       em.createQuery(
           "SELECT t FROM TimeSheetRow t WHERE emp_ID = :eID AND signed = :sgn",
           TimeSheetRow.class);
   q.setParameter("eID", usr.getEmp().getEmp_ID());
   q.setParameter("sgn", false);
   for (TimeSheetRow t : q.getResultList()) {
     ts.tsRows.add(t);
   }
   return "time_sheet";
 }