Code example for Session

Methods: get

0
        _current.set(session);
    } 
 
    public ProcessConfDAO getProcess(QName pid) {
        try { 
            return (ProcessConfDaoImpl) _session.get(ProcessConfDaoImpl.class,pid.toString());
        } catch (HibernateException e) {
            __log.error("DbError", e);
            throw e;
        } 
    } 
 
 
    public DeploymentUnitDAO createDeploymentUnit(String name) {
        DeploymentUnitDaoImpl du = new DeploymentUnitDaoImpl();
        du.setName(name);
        du.setDeployDate(new Date());
        _session.save(du);
        return du;
    } 
Contextual code suggestions in your IDE  Get Codota for Java