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);