List of usage examples for org.hibernate Session saveOrUpdate
void saveOrUpdate(Object object);
From source file:com.hyron.poscafe.dao.CashierDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(Cashier entity, Session session) throws HibernateException { log.debug("saving or updating Cashier instance"); try {/*from w ww. j a v a 2 s.c o m*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ClassDiscDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ClassDisc entity, Session session) throws HibernateException { log.debug("saving or updating ClassDisc instance"); try {//from w ww. j av a 2s .co m session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ClassPropDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ClassProp entity, Session session) throws HibernateException { log.debug("saving or updating ClassProp instance"); try {/* ww w. j ava 2 s. co m*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ExchangeRateDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ExchangeRate entity, Session session) throws HibernateException { log.debug("saving or updating ExchangeRate instance"); try {//from ww w .ja v a 2 s . c o m session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ItemClassDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ItemClass entity, Session session) throws HibernateException { log.debug("saving or updating ItemClass instance"); try {//from w ww . j a v a2s . c o m session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ItemDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(Item entity, Session session) throws HibernateException { log.debug("saving or updating Item instance"); try {/* w w w .ja va 2 s . c om*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ItemDiscDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ItemDisc entity, Session session) throws HibernateException { log.debug("saving or updating ItemDisc instance"); try {/*from w w w .j a va 2s.c o m*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.ItemPicDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(ItemPic entity, Session session) throws HibernateException { log.debug("saving or updating ItemPic instance"); try {/*from w w w. jav a 2 s . c om*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.MemberCardDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(MemberCard entity, Session session) throws HibernateException { log.debug("saving or updating MemberCard instance"); try {//w ww. j a v a 2s.c o m session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }
From source file:com.hyron.poscafe.dao.MixMatchDiscDaoImpl.java
License:Open Source License
@Override public void saveOrUpdate(MixMatchDisc entity, Session session) throws HibernateException { log.debug("saving or updating MixMatchDisc instance"); try {/*ww w . jav a 2s . c om*/ session.saveOrUpdate(entity); log.debug("save or update successful"); } catch (RuntimeException re) { log.error("save or update failed", re); throw re; } }