Example usage for org.hibernate Session persist

List of usage examples for org.hibernate Session persist

Introduction

In this page you can find the example usage for org.hibernate Session persist.

Prototype

void persist(Object object);

Source Link

Document

Make a transient instance persistent.

Usage

From source file:net.purnama.pureff.dao.PaymentTypeInDao.java

public PaymentTypeInEntity addPaymentTypeIn(PaymentTypeInEntity paymenttypein) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymenttypein);
    return paymenttypein;
}

From source file:net.purnama.pureff.dao.PaymentTypeInDraftDao.java

public void addPaymentTypeInDraft(PaymentTypeInDraftEntity paymenttypeindraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymenttypeindraft);
}

From source file:net.purnama.pureff.dao.PaymentTypeOutDao.java

public PaymentTypeOutEntity addPaymentTypeOut(PaymentTypeOutEntity paymenttypeout) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymenttypeout);
    return paymenttypeout;
}

From source file:net.purnama.pureff.dao.PaymentTypeOutDraftDao.java

public void addPaymentTypeOutDraft(PaymentTypeOutDraftEntity paymenttypeoutdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymenttypeoutdraft);
}

From source file:net.purnama.pureff.dao.RateDao.java

public RateEntity addRate(RateEntity rate) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(rate);
    return rate;//from www . j ava 2s .  com
}

From source file:net.purnama.pureff.dao.ReturnPurchaseDao.java

public ReturnPurchaseEntity addReturnPurchase(ReturnPurchaseEntity returnpurchase) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(returnpurchase);
    return returnpurchase;
}

From source file:net.purnama.pureff.dao.ReturnPurchaseDraftDao.java

public ReturnPurchaseDraftEntity addReturnPurchaseDraft(ReturnPurchaseDraftEntity returnpurchasedraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(returnpurchasedraft);
    return returnpurchasedraft;
}

From source file:net.purnama.pureff.dao.ReturnSalesDao.java

public ReturnSalesEntity addReturnSales(ReturnSalesEntity returnsales) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(returnsales);
    return returnsales;
}

From source file:net.purnama.pureff.dao.ReturnSalesDraftDao.java

public ReturnSalesDraftEntity addReturnSalesDraft(ReturnSalesDraftEntity returnsalesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(returnsalesdraft);
    return returnsalesdraft;
}

From source file:net.purnama.pureff.dao.RoleDao.java

public RoleEntity addRole(RoleEntity role) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(role);
    return role;//from www. ja v  a  2 s.c o m
}