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.PaymentInReturnSalesDao.java

public void addPaymentInReturnSales(PaymentInReturnSalesEntity paymentinreturnsales) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentinreturnsales);
}

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

public void addPaymentInReturnSalesDraft(PaymentInReturnSalesDraftEntity paymentinreturnsalesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentinreturnsalesdraft);
}

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

public PaymentOutEntity addPaymentOut(PaymentOutEntity paymentout) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentout);
    return paymentout;
}

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

public PaymentOutDraftEntity addPaymentOutDraft(PaymentOutDraftEntity paymentoutdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutdraft);
    return paymentoutdraft;
}

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

public void addPaymentOutExpenses(PaymentOutExpensesEntity paymentoutexpenses) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutexpenses);
}

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

public void addPaymentOutExpensesDraft(PaymentOutExpensesDraftEntity paymentoutexpensesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutexpensesdraft);
}

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

public void addPaymentOutInvoicePurchase(PaymentOutInvoicePurchaseEntity paymentoutinvoicepurchase) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutinvoicepurchase);
}

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

public void addPaymentOutInvoicePurchaseDraft(
        PaymentOutInvoicePurchaseDraftEntity paymentoutinvoicepurchasedraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutinvoicepurchasedraft);
}

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

public void addPaymentOutReturnPurchase(PaymentOutReturnPurchaseEntity paymentoutreturnpurchase) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutreturnpurchase);
}

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

public void addPaymentOutReturnPurchaseDraft(
        PaymentOutReturnPurchaseDraftEntity paymentoutreturnpurchasedraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentoutreturnpurchasedraft);
}