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

public void addItemAdjustment(ItemAdjustmentEntity itemadjustment) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemadjustment);
}

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

public void addItemAdjustmentDraft(ItemAdjustmentDraftEntity itemadjustmentdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemadjustmentdraft);
}

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

public ItemEntity addItem(ItemEntity item) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(item);
    return item;/*from   ww w.j av  a 2s.co  m*/
}

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

public void addItemDelivery(ItemDeliveryEntity itemdelivery) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemdelivery);
}

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

public ItemDeliveryDraftEntity addItemDeliveryDraft(ItemDeliveryDraftEntity itemdeliverydraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemdeliverydraft);
    return itemdeliverydraft;
}

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

public void addItemExpenses(ItemExpensesEntity itemexpenses) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemexpenses);
}

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

public void addItemExpensesDraft(ItemExpensesDraftEntity itemexpensesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemexpensesdraft);
}

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

public ItemGroupEntity addItemGroup(ItemGroupEntity itemgroup) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(itemgroup);
    return itemgroup;
}

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

public void addItemInvoicePurchase(ItemInvoicePurchaseEntity iteminvoicepurchase) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(iteminvoicepurchase);
}

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

public void addItemInvoicePurchaseDraft(ItemInvoicePurchaseDraftEntity iteminvoicepurchasedraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(iteminvoicepurchasedraft);
}