Package org.openmeetings.app.persistence.beans.basic

Examples of org.openmeetings.app.persistence.beans.basic.ErrorType


    return instance;
  }
  
  public Long addErrorType(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorType eType = new ErrorType();
      eType.setErrortype_id(errortype_id);
      eType.setStarttime(new Date());
      eType.setDeleted("false");
      eType.setFieldvalues_id(fieldvalues_id);
      Object idf = PersistenceSessionUtil.createSession();
      EntityManager session = PersistenceSessionUtil.getSession();
      EntityTransaction tx = session.getTransaction();
      tx.begin();
      eType = session.merge(eType);
      Long newerrortype_id = eType.getErrortype_id();
      tx.commit();
      PersistenceSessionUtil.closeSession(idf);
      return newerrortype_id;
    } catch (Exception ex2) {
      log.error("[addErrorType]: " + ex2);
View Full Code Here


  @PersistenceContext
  private EntityManager em;

  public Long addErrorType(Long errortype_id, Long fieldvalues_id) {
    try {
      ErrorType eType = new ErrorType();
      eType.setErrortype_id(errortype_id);
      eType.setStarttime(new Date());
      eType.setDeleted("false");
      eType.setFieldvalues_id(fieldvalues_id);
      eType = em.merge(eType);
      Long newerrortype_id = eType.getErrortype_id();
      return newerrortype_id;
    } catch (Exception ex2) {
      log.error("[addErrorType]: ", ex2);
    }
    return null;
View Full Code Here

TOP

Related Classes of org.openmeetings.app.persistence.beans.basic.ErrorType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.