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

public ExpensesEntity addExpenses(ExpensesEntity expenses) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(expenses);
    return expenses;
}

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

public ExpensesDraftEntity addExpensesDraft(ExpensesDraftEntity expensesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(expensesdraft);
    return expensesdraft;
}

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

public InvoicePurchaseEntity addInvoicePurchase(InvoicePurchaseEntity invoicepurchase) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicepurchase);
    return invoicepurchase;
}

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

public InvoicePurchaseDraftEntity addInvoicePurchaseDraft(InvoicePurchaseDraftEntity invoicepurchasedraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicepurchasedraft);
    return invoicepurchasedraft;
}

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

public InvoiceSalesEntity addInvoiceSales(InvoiceSalesEntity invoicesales) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicesales);
    return invoicesales;
}

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

public InvoiceSalesDraftEntity addInvoiceSalesDraft(InvoiceSalesDraftEntity invoicesalesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicesalesdraft);
    return invoicesalesdraft;
}

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

public InvoiceWarehouseInEntity addInvoiceWarehouseIn(InvoiceWarehouseInEntity invoicewarehousein) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicewarehousein);
    return invoicewarehousein;
}

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

public InvoiceWarehouseInDraftEntity addInvoiceWarehouseInDraft(
        InvoiceWarehouseInDraftEntity invoicewarehouseindraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicewarehouseindraft);
    return invoicewarehouseindraft;
}

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

public InvoiceWarehouseOutEntity addInvoiceWarehouseOut(InvoiceWarehouseOutEntity invoicewarehouseout) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicewarehouseout);
    return invoicewarehouseout;
}

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

public InvoiceWarehouseOutDraftEntity addInvoiceWarehouseOutDraft(
        InvoiceWarehouseOutDraftEntity invoicewarehouseoutdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(invoicewarehouseoutdraft);
    return invoicewarehouseoutdraft;
}