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

public ItemWarehouseEntity addItemWarehouse(ItemWarehouseEntity partnertype) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(partnertype);
    return partnertype;
}

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

public MenuEntity addMenu(MenuEntity menu) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(menu);
    return menu;//from   ww  w . j  ava2 s.c o m
}

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

public NumberingEntity addNumbering(NumberingEntity numbering) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(numbering);
    return numbering;
}

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

public NumberingNameEntity addNumberingName(NumberingNameEntity numberingname) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(numberingname);
    return numberingname;
}

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

public PartnerEntity addPartner(PartnerEntity partner) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(partner);
    return partner;
}

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

public PartnerTypeEntity addPartnerType(PartnerTypeEntity partnertype) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(partnertype);
    return partnertype;
}

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

public PaymentInEntity addPaymentIn(PaymentInEntity paymentin) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentin);
    return paymentin;
}

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

public PaymentInDraftEntity addPaymentInDraft(PaymentInDraftEntity paymentindraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentindraft);
    return paymentindraft;
}

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

public void addPaymentInInvoiceSales(PaymentInInvoiceSalesEntity paymentininvoicesales) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentininvoicesales);
}

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

public void addPaymentInInvoiceSalesDraft(PaymentInInvoiceSalesDraftEntity paymentininvoicesalesdraft) {
    Session session = this.sessionFactory.getCurrentSession();
    session.persist(paymentininvoicesalesdraft);
}