Ejemplo n.º 1
0
 /**
  * This method was generated by Apache iBATIS ibator. This method corresponds to the database
  * table vouchers
  *
  * @ibatorgenerated Mon Nov 24 17:01:09 CST 2014
  */
 public Vouchers selectByPrimaryKey(Integer id) {
   Vouchers key = new Vouchers();
   key.setId(id);
   Vouchers record =
       (Vouchers)
           getSqlMapClientTemplate()
               .queryForObject("vouchers.ibatorgenerated_selectByPrimaryKey", key);
   return record;
 }
Ejemplo n.º 2
0
 /**
  * This method was generated by Apache iBATIS ibator. This method corresponds to the database
  * table vouchers
  *
  * @ibatorgenerated Mon Nov 24 17:01:09 CST 2014
  */
 public int deleteByPrimaryKey(Integer id) {
   Vouchers key = new Vouchers();
   key.setId(id);
   int rows = getSqlMapClientTemplate().delete("vouchers.ibatorgenerated_deleteByPrimaryKey", key);
   return rows;
 }