First Commit from Source Code Reply

This commit is contained in:
vincenzofariello
2024-05-09 17:40:24 +02:00
parent 11e3b57c5b
commit 107a016cb9
35225 changed files with 1111346 additions and 1 deletions

View File

@@ -0,0 +1,173 @@
package it.valueteam.gnpgo.core.csv;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
public class ToolKoRichiesteCsv {
final String COL_SEP = ";";
DateFormat df = null;//new SimpleDateFormat
private static final String DATE_PATERN = "dd/MM/yyyy";
private static final String DATE_PATTERN_HH_MM_SS = "dd/MM/yyyy HH:mm:ss";
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceFiscalePartivaIva;
private String causaleRifiuto;
private String descrizioneRifiuto;
private Date dac;
private String cor;
private String cos;
private Date dataRicezione;
private String cow;
private String cow2;
private String cowOrigine;
private String delibera;
private String processo;
public ToolKoRichiesteCsv() {
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceFiscalePartivaIva() {
return codiceFiscalePartivaIva;
}
public void setCodiceFiscalePartivaIva(String codiceFiscalePartivaIva) {
this.codiceFiscalePartivaIva = codiceFiscalePartivaIva;
}
public String getCausaleRifiuto() {
return causaleRifiuto;
}
public void setCausaleRifiuto(String causaleRifiuto) {
this.causaleRifiuto = causaleRifiuto;
}
public String getDescrizioneRifiuto() {
return descrizioneRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCor() {
return cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getCos() {
return cos;
}
public void setCos(String cos) {
this.cos = cos;
}
public Date getDataRicezione() {
return dataRicezione;
}
public void setDataRicezione(Date dataRicezione) {
this.dataRicezione = dataRicezione;
}
public String getCow() {
return cow;
}
public void setCow(String cow) {
this.cow = cow;
}
public String getCow2() {
return cow2;
}
public void setCow2(String cow2) {
this.cow2 = cow2;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public String getProcesso() {
return processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public String getDelibera() {
return delibera;
}
public void setDelibera(String delibera) {
this.delibera = delibera;
}
public String toString() {
df = new SimpleDateFormat(DATE_PATERN);
StringBuilder buff = new StringBuilder();
buff.append(this.getIdEsigenza()).append(COL_SEP);
buff.append(this.getPiattaformaProvenienza()).append(COL_SEP);
buff.append(this.getNumeroTelefono()).append(COL_SEP);
buff.append(this.getCodiceFiscalePartivaIva()).append(COL_SEP);
buff.append(this.getCausaleRifiuto()).append(COL_SEP);
//buff.append(this.getDescrizioneRifiuto()).append(COL_SEP);
buff.append(df.format(this.getDac())).append(COL_SEP);
buff.append(this.getCow()).append(COL_SEP);
buff.append(this.getCow2()).append(COL_SEP);
buff.append(this.getCor()).append(COL_SEP);
buff.append(this.getCos()).append(COL_SEP);
buff.append(this.getCowOrigine()).append(COL_SEP);
df = new SimpleDateFormat(DATE_PATTERN_HH_MM_SS);
buff.append(df.format(this.getDataRicezione())).append(COL_SEP);
buff.append(this.getDelibera()).append(COL_SEP);
buff.append(this.getProcesso()).append(COL_SEP);
return buff.toString();
}
}

View File

@@ -0,0 +1,64 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
/**
* Data access object (DAO) for domain model
* @author MyEclipse Persistence Tools
*/
public class BaseHibernateDAO implements IBaseHibernateDAO {
private static final SessionFactory sessionFactory;
public static final String HIB_PROP_REPORT_DATA_INSERIMENTO = "dataInserimento";
public static final String HIB_PROP_PROCESSO = "processo";
public static final String HIB_PROP_CODICE_ORDINE = "codiceOrdine";
public static final String HIB_PROP_COD_OLO = "cow";
public static final String HIB_PROP_COD_SERVIZIO = "cos";
public static final String HIB_PROP_CANALE_VENDITA = "canaleVendita";
static {
try {
// Create the SessionFactory from hibernate.cfg.xml
sessionFactory = new Configuration().configure().buildSessionFactory();
} catch (Throwable ex) {
// Make sure you log the exception, as it might be swallowed
System.err.println("Initial SessionFactory creation failed." + ex);
throw new ExceptionInInitializerError(ex);
}
}
public Session getSession() {
try {
Session s = sessionFactory.getCurrentSession();
// System.out.println("getCurrentSession");
return s;
}
catch (org.hibernate.HibernateException e) {
// System.out.println("openSession");
return HibernateSessionFactory.getSession();
//return sessionFactory.openSession();
}
}
/**
* Chiude la connessione
* da richiamare in tutti le select
*/
public void closeSession() {
HibernateSessionFactory.closeSession();
}
/**
* esegue le query su DB senza aspettare la commit JTA
*/
public void flush() {
getSession().flush();
}
}

View File

@@ -0,0 +1,14 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2-apr-2012 11.30.22 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOlo" table="GNPGO_ANAG_OLO">
<id name="olo" type="string">
<column name="OLO" length="10" />
</id>
<property name="descrizioneOlo" type="string">
<column name="DESCRIZIONE_OLO" length="200" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,41 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 2-apr-2012 11.30.22 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoAnagOloParam generated by hbm2java
*/
public class GnpgoAnagOlo implements java.io.Serializable {
private String olo;
private String descrizioneOlo;
public GnpgoAnagOlo() {
}
public GnpgoAnagOlo(String olo, String descrizioneOlo) {
this.olo = olo;
this.descrizioneOlo = descrizioneOlo;
}
public String getOlo() {
return olo;
}
public void setOlo(String olo) {
this.olo = olo;
}
public String getDescrizioneOlo() {
return descrizioneOlo;
}
public void setDescrizioneOlo(String descrizioneOlo) {
this.descrizioneOlo = descrizioneOlo;
}
}

View File

@@ -0,0 +1,193 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 2-apr-2012 11.30.28 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import java.util.Iterator;
import java.util.List;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoAnagOlo.
*
* @author C.A.
* @see .GnpgoAnagOlo
*/
public class GnpgoAnagOloDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoAnagOloDAO.class);
public void save(GnpgoAnagOlo transientInstance) {
log.debug("saving GnpgoAnagOlo instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoAnagOlo> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoAnagOlo instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoAnagOlo model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoAnagOlo> findAll() {
log.debug("finding all GnpgoAnagOlo ");
try {
String queryString = " from GnpgoAnagOlo";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoAnagOlo instance) {
log.debug("attaching dirty GnpgoAnagOlo instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoAnagOlo instance) {
log.debug("attaching clean GnpgoAnagOlo instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoAnagOlo persistentInstance) {
log.debug("deleting GnpgoAnagOlo instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoAnagOlo merge(GnpgoAnagOlo detachedInstance) {
log.debug("merging GnpgoAnagOlo instance");
try {
GnpgoAnagOlo result = (GnpgoAnagOlo) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoAnagOlo> findByCriteria(List criterion) {
log.debug("finding GnpgoAnagOlo instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOlo");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoAnagOlo findById( String id) {
log.debug("getting GnpgoAnagOlo instance with id: " + id);
try {
GnpgoAnagOlo instance = (GnpgoAnagOlo) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOlo", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoAnagOlo> findByExample(GnpgoAnagOlo instance) {
log.debug("finding GnpgoAnagOlo instance by example");
try {
List<GnpgoAnagOlo> results = (List<GnpgoAnagOlo>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOlo")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 2-apr-2012 11.30.22 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOloParam" table="GNPGO_ANAG_OLO_PARAM">
<id name="codiceCow" type="string">
<column name="CODICE_COW" length="3" />
<generator class="assigned"></generator>
</id>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" not-null="true" />
</property>
<property name="cowDescrizione" type="string">
<column name="COW_DESCRIZIONE" not-null="true" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,53 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 2-apr-2012 11.30.22 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoAnagOloParam generated by hbm2java
*/
public class GnpgoAnagOloParam implements java.io.Serializable {
private String codiceCow;
private String cowOrigine;
private String cowDescrizione;
public GnpgoAnagOloParam() {
}
public GnpgoAnagOloParam(String codiceCow, String cowOrigine, String cowDescrizione) {
this.codiceCow = codiceCow;
this.cowOrigine = cowOrigine;
this.cowDescrizione = cowDescrizione;
}
public String getCodiceCow() {
return this.codiceCow;
}
public void setCodiceCow(String codiceCow) {
this.codiceCow = codiceCow;
}
public String getCowOrigine() {
return this.cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public String getCowDescrizione() {
return this.cowDescrizione;
}
public void setCowDescrizione(String cowDescrizione) {
this.cowDescrizione = cowDescrizione;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 2-apr-2012 11.30.28 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoAnagOloParam.
* @see .GnpgoAnagOloParam
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoAnagOloParamDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoAnagOloParamDAO.class);
public void save(GnpgoAnagOloParam transientInstance) {
log.debug("saving GnpgoAnagOloParam instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoAnagOloParam> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoAnagOloParam instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoAnagOloParam model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoAnagOloParam> findAll() {
log.debug("finding all GnpgoAnagOloParam ");
try {
String queryString = " from GnpgoAnagOloParam";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoAnagOloParam instance) {
log.debug("attaching dirty GnpgoAnagOloParam instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoAnagOloParam instance) {
log.debug("attaching clean GnpgoAnagOloParam instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoAnagOloParam persistentInstance) {
log.debug("deleting GnpgoAnagOloParam instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoAnagOloParam merge(GnpgoAnagOloParam detachedInstance) {
log.debug("merging GnpgoAnagOloParam instance");
try {
GnpgoAnagOloParam result = (GnpgoAnagOloParam) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoAnagOloParam> findByCriteria(List criterion) {
log.debug("finding GnpgoAnagOloParam instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOloParam");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoAnagOloParam findById( java.lang.String id) {
log.debug("getting GnpgoAnagOloParam instance with id: " + id);
try {
GnpgoAnagOloParam instance = (GnpgoAnagOloParam) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOloParam", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoAnagOloParam> findByExample(GnpgoAnagOloParam instance) {
log.debug("finding GnpgoAnagOloParam instance by example");
try {
List<GnpgoAnagOloParam> results = (List<GnpgoAnagOloParam>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoAnagOloParam")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,46 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-apr-2014 18.09.02 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoCodiceOrdine" table="GNPGO_CODICE_ORDINE">
<composite-id name="id" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoCodiceOrdineId">
<key-property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</key-property>
<key-property name="dn" type="string">
<column name="DN" length="12" />
</key-property>
<key-property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" />
</key-property>
</composite-id>
<property name="codFiscalePIva" type="string">
<column name="COD_FISCALE_P_IVA" length="16" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="dataRicezioneTipoComm2" type="timestamp">
<column name="DATA_RICEZIONE_TIPO_COMM2" length="7" />
</property>
<property name="dacInviata" type="date">
<column name="DAC_INVIATA" length="7" />
</property>
<property name="dfsa" type="date">
<column name="DFSA" length="7" />
</property>
<property name="codSessioneOlo" type="string">
<column name="COD_SESSIONE_OLO" length="50" />
</property>
<property name="dataRicezioneCodSessione" type="timestamp">
<column name="DATA_RICEZIONE_COD_SESSIONE" length="7" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataChiusuraDbcfx" type="date">
<column name="DATA_CHIUSURA_DBCFX" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,121 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-apr-2014 18.09.03 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoCodiceOrdine generated by hbm2java
*/
public class GnpgoCodiceOrdine implements java.io.Serializable {
private GnpgoCodiceOrdineId id;
private String codFiscalePIva;
private Date dataOrdine;
private Date dataRicezioneTipoComm2;
private Date dacInviata;
private Date dfsa;
private String codSessioneOlo;
private Date dataRicezioneCodSessione;
private String processo;
private Date dataChiusuraDbcfx;
public GnpgoCodiceOrdine() {
}
public GnpgoCodiceOrdine(GnpgoCodiceOrdineId id) {
this.id = id;
}
public GnpgoCodiceOrdine(GnpgoCodiceOrdineId id, String codFiscalePIva, Date dataOrdine, Date dataRicezioneTipoComm2, Date dacInviata, Date dfsa, String codSessioneOlo, Date dataRicezioneCodSessione, String processo, Date dataChiusuraDbcfx) {
this.id = id;
this.codFiscalePIva = codFiscalePIva;
this.dataOrdine = dataOrdine;
this.dataRicezioneTipoComm2 = dataRicezioneTipoComm2;
this.dacInviata = dacInviata;
this.dfsa = dfsa;
this.codSessioneOlo = codSessioneOlo;
this.dataRicezioneCodSessione = dataRicezioneCodSessione;
this.processo = processo;
this.dataChiusuraDbcfx = dataChiusuraDbcfx;
}
public GnpgoCodiceOrdineId getId() {
return this.id;
}
public void setId(GnpgoCodiceOrdineId id) {
this.id = id;
}
public String getCodFiscalePIva() {
return this.codFiscalePIva;
}
public void setCodFiscalePIva(String codFiscalePIva) {
this.codFiscalePIva = codFiscalePIva;
}
public Date getDataOrdine() {
return this.dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Date getDataRicezioneTipoComm2() {
return this.dataRicezioneTipoComm2;
}
public void setDataRicezioneTipoComm2(Date dataRicezioneTipoComm2) {
this.dataRicezioneTipoComm2 = dataRicezioneTipoComm2;
}
public Date getDacInviata() {
return this.dacInviata;
}
public void setDacInviata(Date dacInviata) {
this.dacInviata = dacInviata;
}
public Date getDfsa() {
return this.dfsa;
}
public void setDfsa(Date dfsa) {
this.dfsa = dfsa;
}
public String getCodSessioneOlo() {
return this.codSessioneOlo;
}
public void setCodSessioneOlo(String codSessioneOlo) {
this.codSessioneOlo = codSessioneOlo;
}
public Date getDataRicezioneCodSessione() {
return this.dataRicezioneCodSessione;
}
public void setDataRicezioneCodSessione(Date dataRicezioneCodSessione) {
this.dataRicezioneCodSessione = dataRicezioneCodSessione;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataChiusuraDbcfx() {
return this.dataChiusuraDbcfx;
}
public void setDataChiusuraDbcfx(Date dataChiusuraDbcfx) {
this.dataChiusuraDbcfx = dataChiusuraDbcfx;
}
}

View File

@@ -0,0 +1,170 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoCodiceOrdine.
*
* @author C.A.
* @see .GnpgoCodiceOrdine
*/
public class GnpgoCodiceOrdineDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoCodiceOrdineDAO.class);
public static final String HP_DN ="id.dn";
public static final String HP_CODICE_ORDINE ="id.codiceOrdine";
public static final String HP_DATA_ORDINE ="dataOrdine";
public static final String HP_COD_FISCALE ="codFiscalePIva";
public void save(GnpgoCodiceOrdine transientInstance) {
log.debug("saving GnpgoCodiceOrdine instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoCodiceOrdine> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoCodiceOrdine instance with property: " + propertyName + ", value: " + value);
try {
String queryString = "select model from GnpgoCodiceOrdine model where model." + propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoCodiceOrdine> findAll() {
log.debug("finding all GnpgoCodiceOrdine ");
try {
String queryString = " from GnpgoCodiceOrdine";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public void attachDirty(GnpgoCodiceOrdine instance) {
log.debug("attaching dirty GnpgoCodiceOrdine instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoCodiceOrdine instance) {
log.debug("attaching clean GnpgoCodiceOrdine instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoCodiceOrdine persistentInstance) {
log.debug("deleting GnpgoCodiceOrdine instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoCodiceOrdine merge(GnpgoCodiceOrdine detachedInstance) {
log.debug("merging GnpgoCodiceOrdine instance");
try {
GnpgoCodiceOrdine result = (GnpgoCodiceOrdine) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoCodiceOrdine> findByCriteria(List criterion) {
log.debug("finding GnpgoCodiceOrdine instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoCodiceOrdine");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoCodiceOrdine findById(GnpgoCodiceOrdineId id) {
log.debug("getting GnpgoCodiceOrdine instance with id: " + id);
try {
GnpgoCodiceOrdine instance = (GnpgoCodiceOrdine) getSession().get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoCodiceOrdine", id);
if (instance == null) {
log.debug("get successful, no instance found");
} else {
log.debug("get successful, instance found");
}
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoCodiceOrdine> findByExample(GnpgoCodiceOrdine instance) {
log.debug("finding GnpgoCodiceOrdine instance by example");
try {
List<GnpgoCodiceOrdine> results = (List<GnpgoCodiceOrdine>) getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoCodiceOrdine").add(create(instance)).list();
log.debug("find by example successful, result size: " + results.size());
return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,72 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-apr-2014 18.09.03 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoCodiceOrdineId generated by hbm2java
*/
public class GnpgoCodiceOrdineId implements java.io.Serializable {
private String codiceOrdine;
private String dn;
private String idEsigenza;
public GnpgoCodiceOrdineId() {
}
public GnpgoCodiceOrdineId(String codiceOrdine, String dn, String idEsigenza) {
this.codiceOrdine = codiceOrdine;
this.dn = dn;
this.idEsigenza = idEsigenza;
}
public String getCodiceOrdine() {
return this.codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public String getDn() {
return this.dn;
}
public void setDn(String dn) {
this.dn = dn;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof GnpgoCodiceOrdineId) ) return false;
GnpgoCodiceOrdineId castOther = ( GnpgoCodiceOrdineId ) other;
return ( (this.getCodiceOrdine()==castOther.getCodiceOrdine()) || ( this.getCodiceOrdine()!=null && castOther.getCodiceOrdine()!=null && this.getCodiceOrdine().equals(castOther.getCodiceOrdine()) ) )
&& ( (this.getDn()==castOther.getDn()) || ( this.getDn()!=null && castOther.getDn()!=null && this.getDn().equals(castOther.getDn()) ) )
&& ( (this.getIdEsigenza()==castOther.getIdEsigenza()) || ( this.getIdEsigenza()!=null && castOther.getIdEsigenza()!=null && this.getIdEsigenza().equals(castOther.getIdEsigenza()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getCodiceOrdine() == null ? 0 : this.getCodiceOrdine().hashCode() );
result = 37 * result + ( getDn() == null ? 0 : this.getDn().hashCode() );
result = 37 * result + ( getIdEsigenza() == null ? 0 : this.getIdEsigenza().hashCode() );
return result;
}
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 11-nov-2008 16.27.43 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoFestivita" table="GNPGO_FESTIVITA" mutable="false">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="nome" type="string">
<column name="NOME" length="30" />
</property>
<property name="festivita" type="string">
<column name="FESTIVITA" length="30" />
</property>
<property name="giorno" type="string">
<column name="GIORNO" length="2" />
</property>
<property name="mese" type="string">
<column name="MESE" length="2" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,75 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 11-nov-2008 16.27.44 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoFestivita generated by hbm2java
*/
public class GnpgoFestivita implements java.io.Serializable {
private Long id;
private String nome;
private String festivita;
private String giorno;
private String mese;
public GnpgoFestivita() {
}
public GnpgoFestivita(Long id) {
this.id = id;
}
public GnpgoFestivita(Long id, String nome, String festivita, String giorno, String mese) {
this.id = id;
this.nome = nome;
this.festivita = festivita;
this.giorno = giorno;
this.mese = mese;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getNome() {
return this.nome;
}
public void setNome(String nome) {
this.nome = nome;
}
public String getFestivita() {
return this.festivita;
}
public void setFestivita(String festivita) {
this.festivita = festivita;
}
public String getGiorno() {
return this.giorno;
}
public void setGiorno(String giorno) {
this.giorno = giorno;
}
public String getMese() {
return this.mese;
}
public void setMese(String mese) {
this.mese = mese;
}
}

View File

@@ -0,0 +1,192 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 11-nov-2008 16.27.59 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoFestivita.
* @see .GnpgoFestivita
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoFestivitaDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoFestivitaDAO.class);
public static final String HIB_PROP_DAY_OF_MONTH = "giorno";
public static final String HIB_PROP_MONTH = "mese";
public void save(GnpgoFestivita transientInstance) {
log.debug("saving GnpgoFestivita instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoFestivita> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoFestivita instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoFestivita model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoFestivita> findAll() {
log.debug("finding all GnpgoFestivita ");
try {
String queryString = " from GnpgoFestivita";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoFestivita instance) {
log.debug("attaching dirty GnpgoFestivita instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoFestivita instance) {
log.debug("attaching clean GnpgoFestivita instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoFestivita persistentInstance) {
log.debug("deleting GnpgoFestivita instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoFestivita merge(GnpgoFestivita detachedInstance) {
log.debug("merging GnpgoFestivita instance");
try {
GnpgoFestivita result = (GnpgoFestivita) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoFestivita> findByCriteria(List criterion) {
log.debug("finding GnpgoFestivita instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFestivita");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoFestivita findById( java.lang.Long id) {
log.debug("getting GnpgoFestivita instance with id: " + id);
try {
GnpgoFestivita instance = (GnpgoFestivita) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFestivita", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoFestivita> findByExample(GnpgoFestivita instance) {
log.debug("finding GnpgoFestivita instance by example");
try {
List<GnpgoFestivita> results = (List<GnpgoFestivita>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFestivita")
.add( create(instance)).list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 27-nov-2008 15.53.17 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoFunzionalitaGui" table="GNPGO_FUNZIONALITA_GUI">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="funzionalita" type="string">
<column name="FUNZIONALITA" length="50" not-null="true" />
</property>
<property name="descrizione" type="string">
<column name="DESCRIZIONE" />
</property>
<set name="gnpgoProfiliFunzionalitas" inverse="true" fetch="join">
<key>
<column name="FUNZIONALITA" precision="22" scale="0" not-null="true" />
</key>
<one-to-many class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita" />
</set>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,69 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 15.53.18 by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
/**
* GnpgoFunzionalitaGui generated by hbm2java
*/
public class GnpgoFunzionalitaGui implements java.io.Serializable {
private Long id;
private String funzionalita;
private String descrizione;
private Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas = new HashSet<GnpgoProfiliFunzionalita>(0);
public GnpgoFunzionalitaGui() {
}
public GnpgoFunzionalitaGui(Long id, String funzionalita) {
this.id = id;
this.funzionalita = funzionalita;
}
public GnpgoFunzionalitaGui(Long id, String funzionalita, String descrizione, Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas) {
this.id = id;
this.funzionalita = funzionalita;
this.descrizione = descrizione;
this.gnpgoProfiliFunzionalitas = gnpgoProfiliFunzionalitas;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getFunzionalita() {
return this.funzionalita;
}
public void setFunzionalita(String funzionalita) {
this.funzionalita = funzionalita;
}
public String getDescrizione() {
return this.descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public Set<GnpgoProfiliFunzionalita> getGnpgoProfiliFunzionalitas() {
return this.gnpgoProfiliFunzionalitas;
}
public void setGnpgoProfiliFunzionalitas(Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas) {
this.gnpgoProfiliFunzionalitas = gnpgoProfiliFunzionalitas;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 14.44.48 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoFunzionalitaGui.
* @see .GnpgoFunzionalitaGui
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoFunzionalitaGuiDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoFunzionalitaGuiDAO.class);
public void save(GnpgoFunzionalitaGui transientInstance) {
log.debug("saving GnpgoFunzionalitaGui instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoFunzionalitaGui> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoFunzionalitaGui instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoFunzionalitaGui model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoFunzionalitaGui> findAll() {
log.debug("finding all GnpgoFunzionalitaGui ");
try {
String queryString = " from GnpgoFunzionalitaGui";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoFunzionalitaGui instance) {
log.debug("attaching dirty GnpgoFunzionalitaGui instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoFunzionalitaGui instance) {
log.debug("attaching clean GnpgoFunzionalitaGui instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoFunzionalitaGui persistentInstance) {
log.debug("deleting GnpgoFunzionalitaGui instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoFunzionalitaGui merge(GnpgoFunzionalitaGui detachedInstance) {
log.debug("merging GnpgoFunzionalitaGui instance");
try {
GnpgoFunzionalitaGui result = (GnpgoFunzionalitaGui) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoFunzionalitaGui> findByCriteria(List criterion) {
log.debug("finding GnpgoFunzionalitaGui instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFunzionalitaGui");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoFunzionalitaGui findById( java.lang.Long id) {
log.debug("getting GnpgoFunzionalitaGui instance with id: " + id);
try {
GnpgoFunzionalitaGui instance = (GnpgoFunzionalitaGui) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFunzionalitaGui", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoFunzionalitaGui> findByExample(GnpgoFunzionalitaGui instance) {
log.debug("finding GnpgoFunzionalitaGui instance by example");
try {
List<GnpgoFunzionalitaGui> results = (List<GnpgoFunzionalitaGui>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoFunzionalitaGui")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,110 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheD82" table="GNPGO_NOTIFICHE_DEL82">
<id name="uniqueId" type="java.lang.Long">
<column name="UNIQUE_ID" precision="22" scale="0" />
</id>
<property name="dataCreazione" type="timestamp">
<column name="DATA_CREAZIONE" length="7" />
</property>
<property name="idRichiesta" type="java.lang.Long">
<column name="ID_RICHIESTA" precision="22" scale="0" />
</property>
<property name="stato" type="java.lang.Long">
<column name="STATO" precision="22" scale="0" />
</property>
<property name="piattaformaCrm" type="string">
<column name="PIATTAFORMA_CRM" length="1" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" />
</property>
<property name="tipoComunicazione" type="string">
<column name="TIPO_COMUNICAZIONE" length="4" />
</property>
<property name="opRecipient" type="string">
<column name="OP_RECIPIENT" length="3" />
</property>
<property name="codiceOrdineRecipient" type="string">
<column name="CODICE_ORDINE_RECIPIENT" length="18" />
</property>
<property name="codiceOrdineWhs" type="string">
<column name="CODICE_ORDINE_WHS" length="18" />
</property>
<property name="cow" type="string">
<column name="COW" length="3"/>
</property>
<property name="cos" type="string">
<column name="COS" length="3" />
</property>
<property name="cor" type="string">
<column name="COR" length="12" />
</property>
<property name="codFiscalePIva" type="string">
<column name="COD_FISCALE_P_IVA" length="16"/>
</property>
<property name="dataNotifica" type="date">
<column name="DATA_NOTIFICA" length="7" />
</property>
<property name="nomeFile" type="string">
<column name="NOME_FILE" length="50" />
</property>
<property name="dn1" type="string">
<column name="DN1" length="12" />
</property>
<property name="dn2" type="string">
<column name="DN2" length="12" />
</property>
<property name="dn3" type="string">
<column name="DN3" length="12" />
</property>
<property name="dn4" type="string">
<column name="DN4" length="12" />
</property>
<property name="dn5" type="string">
<column name="DN5" length="12" />
</property>
<property name="dn6" type="string">
<column name="DN6" length="12" />
</property>
<property name="dn7" type="string">
<column name="DN7" length="12" />
</property>
<property name="dn8" type="string">
<column name="DN8" length="12" />
</property>
<property name="dn9" type="string">
<column name="DN9" length="12" />
</property>
<property name="dn10" type="string">
<column name="DN10" length="12" />
</property>
<property name="codiceRifiuto" type="string">
<column name="CODICE_MOTIVO_RIFIUTO" length="4" />
</property>
<property name="causaleRifiuto" type="string">
<column name="CAUSALE_RIFIUTO" />
</property>
<property name="codiceSessione" type="string">
<column name="CODICE_SESSIONE" length="50" />
</property>
<property name="dataScadenza" type="date">
<column name="DATA_SCADENZA" length="7" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="des" type="date">
<column name="DATA_ESPLETAMENTO" length="7" />
</property>
<property name="idNotificaNow" type="string">
<column name="ID_NOTIFICA_FASE3" />
</property>
<property name="tipoEventoFase3" type="string">
<column name="TIPO_EVENTO_FASE3" length="20" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,324 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-dic-2014 12.00.46 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoGestioneRichiesteD82 generated by hbm2java
*/
public class GnpgoGestioneNotificheD82 implements java.io.Serializable {
private Long uniqueId;
private Date dataCreazione;
private Long idRichiesta; //richiesteD82
private Long stato; //0 OK, 1 KO
private String codiceOrdineRecipient;
private String codiceOrdineWhs;
private String tipoComunicazione;
private String piattaformaCrm;
private String numeroTelefono; //dn
private String opRecipient; //olo_recipient
private String cow; //cowDonating
private String cos; //codServizio
private String cor; //cor
private String codFiscalePIva; //cod_fiscale_piva
private Date dataNotifica; //dataRicezione //dataInvio //dataInvioKO
private String nomeFile;
private String dn1;
private String dn2;
private String dn3;
private String dn4;
private String dn5;
private String dn6;
private String dn7;
private String dn8;
private String dn9;
private String dn10;
private Long codiceRifiuto;
private String causaleRifiuto;
private String codiceSessione;
private Date dataScadenza;
private String tipoEventoFase3;
private String idNotificaNow;
private Date dac;
private Date des;
public GnpgoGestioneNotificheD82() {
}
public Long getUniqueId() {
return uniqueId;
}
public void setUniqueId(Long uniqueId) {
this.uniqueId = uniqueId;
}
public Date getDataCreazione() {
return dataCreazione;
}
public void setDataCreazione(Date dataCreazione) {
this.dataCreazione = dataCreazione;
}
public Long getIdRichiesta() {
return idRichiesta;
}
public void setIdRichiesta(Long idRichiesta) {
this.idRichiesta = idRichiesta;
}
public Long getStato() {
return stato;
}
public void setStato(Long stato) {
this.stato = stato;
}
public String getCodiceOrdineRecipient() {
return codiceOrdineRecipient;
}
public void setCodiceOrdineRecipient(String codiceOrdineRecipient) {
this.codiceOrdineRecipient = codiceOrdineRecipient;
}
public String getCodiceOrdineWhs() {
return codiceOrdineWhs;
}
public void setCodiceOrdineWhs(String codiceOrdineWhs) {
this.codiceOrdineWhs = codiceOrdineWhs;
}
public String getTipoComunicazione() {
return tipoComunicazione;
}
public void setTipoComunicazione(String tipoComunicazione) {
this.tipoComunicazione = tipoComunicazione;
}
public String getPiattaformaCrm() {
return piattaformaCrm;
}
public void setPiattaformaCrm(String piattaformaCrm) {
this.piattaformaCrm = piattaformaCrm;
}
public String getNumeroTelefono() {
return numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getOpRecipient() {
return opRecipient;
}
public void setOpRecipient(String opRecipient) {
this.opRecipient = opRecipient;
}
public String getCow() {
return cow;
}
public void setCow(String cow) {
this.cow = cow;
}
public String getCos() {
return cos;
}
public void setCos(String cos) {
this.cos = cos;
}
public String getCor() {
return cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getCodFiscalePIva() {
return codFiscalePIva;
}
public void setCodFiscalePIva(String codFiscalePIva) {
this.codFiscalePIva = codFiscalePIva;
}
public Date getDataNotifica() {
return dataNotifica;
}
public void setDataNotifica(Date dataNotifica) {
this.dataNotifica = dataNotifica;
}
public String getNomeFile() {
return nomeFile;
}
public void setNomeFile(String nomeFile) {
this.nomeFile = nomeFile;
}
public String getDn1() {
return dn1;
}
public void setDn1(String dn1) {
this.dn1 = dn1;
}
public String getDn2() {
return dn2;
}
public void setDn2(String dn2) {
this.dn2 = dn2;
}
public String getDn3() {
return dn3;
}
public void setDn3(String dn3) {
this.dn3 = dn3;
}
public String getDn4() {
return dn4;
}
public void setDn4(String dn4) {
this.dn4 = dn4;
}
public String getDn5() {
return dn5;
}
public void setDn5(String dn5) {
this.dn5 = dn5;
}
public String getDn6() {
return dn6;
}
public void setDn6(String dn6) {
this.dn6 = dn6;
}
public String getDn7() {
return dn7;
}
public void setDn7(String dn7) {
this.dn7 = dn7;
}
public String getDn8() {
return dn8;
}
public void setDn8(String dn8) {
this.dn8 = dn8;
}
public String getDn9() {
return dn9;
}
public void setDn9(String dn9) {
this.dn9 = dn9;
}
public String getDn10() {
return dn10;
}
public void setDn10(String dn10) {
this.dn10 = dn10;
}
public Long getCodiceRifiuto() {
return codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getCausaleRifiuto() {
return causaleRifiuto;
}
public void setCausaleRifiuto(String causaleRifiuto) {
this.causaleRifiuto = causaleRifiuto;
}
public String getCodiceSessione() {
return codiceSessione;
}
public void setCodiceSessione(String codiceSessione) {
this.codiceSessione = codiceSessione;
}
public Date getDataScadenza() {
return dataScadenza;
}
public void setDataScadenza(Date dataScadenza) {
this.dataScadenza = dataScadenza;
}
public String getTipoEventoFase3() {
return tipoEventoFase3;
}
public void setTipoEventoFase3(String tipoEventoFase3) {
this.tipoEventoFase3 = tipoEventoFase3;
}
public String getIdNotificaNow() {
return idNotificaNow;
}
public void setIdNotificaNow(String idNotificaNow) {
this.idNotificaNow = idNotificaNow;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public Date getDes() {
return des;
}
public void setDes(Date des) {
this.des = des;
}
}

View File

@@ -0,0 +1,145 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import org.hibernate.criterion.Restrictions;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
/**
* GnpgoGestioneNotificheD82DAO generated by hbm2java
*/
public class GnpgoGestioneNotificheD82DAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoGestioneNotificheD82DAO.class);
public static final String HP_DN ="numeroTelefono";
public static final String HP_CODICE_ORDINE ="codiceOrdineRecipient";
public static final String HP_UNIQUE_ID ="uniqueId";
public List findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoGestioneNotificheD82 instance with property: " + propertyName + ", value: " + value);
try {
String queryString = "select model from GnpgoGestioneNotificheD82 model where model." + propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
} finally {
closeSession();
}
}
public GnpgoGestioneNotificheD82 findById( Long id) {
log.debug("getting GnpgoGestioneNotificheD82 instance with id: " + id);
try {
GnpgoGestioneNotificheD82 instance = (GnpgoGestioneNotificheD82) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheD82", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public void save(GnpgoGestioneNotificheD82 transientInstance) {
log.debug("saving GnpgoGestioneNotificheD82 instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public GnpgoGestioneNotificheD82 merge(GnpgoGestioneNotificheD82 detachedInstance) {
log.debug("merging GnpgoGestioneNotificheDonating instance");
try {
GnpgoGestioneNotificheD82 result = (GnpgoGestioneNotificheD82) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoGestioneNotificheD82> findAll() {
log.debug("finding all GnpgoGestioneNotificheD82 ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheD82");
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoGestioneNotificheD82> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoGestioneNotificheD82 instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheD82");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
//crit.addOrder(Order.desc(HP_DN));
//crit.addOrder(Order.desc(HP_IDENTIFICATIVO_TIM));
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
//crit.addOrder(Order.desc(HP_ID_CORRELAZIONE));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public boolean checkEsistenzaNotifica(GnpgoGestioneNotificheD82 notifica) {
List<Criterion> criterion = new ArrayList<Criterion>();
criterion.add(Restrictions.eq("idRichiesta", notifica.getIdRichiesta()));
criterion.add(Restrictions.eq("tipoComunicazione", notifica.getTipoComunicazione()));
if (findByCriteria(criterion) != null && findByCriteria(criterion).size() > 0) {
return true;
} else {
return false;
}
}
}

View File

@@ -0,0 +1,68 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheDonating" table="GNPGO_NOTIFICHE_DONATING">
<id name="uniqueId" type="java.lang.Long">
<column name="UNIQUE_ID" precision="22" scale="0" />
</id>
<property name="tipoComunicazione" type="string">
<column name="TIPO_COMUNICAZIONE" length="2"/>
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="piattaformaCrm" type="string">
<column name="PIATTAFORMA_CRM" />
</property>
<property name="nomeFileFenp" type="string">
<column name="NOME_FILE_FENP" length="50"/>
</property>
<property name="esito" type="string">
<column name="ESITO" length="2" />
</property>
<property name="codiceRifiuto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneRifiuto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceSegreto" type="string">
<column name="CODICE_SEGRETO" length="3" />
</property>
<property name="codiceProgetto" type="string">
<column name="CODICE_PROGETTO" length="18" />
</property>
<property name="dataInvioRichiesta" type="date">
<column name="DATA_INVIO_RICHIESTA" length="7" />
</property>
<property name="codOpRecipient" type="string">
<column name="COD_OP_RECIPIENT" length="3" />
</property>
<property name="codOpDonor" type="string">
<column name="COD_OP_DONOR" length="3" />
</property>
<property name="routingNumber" type="string">
<column name="ROUTING_NUMBER" />
</property>
<property name="numTotRichieste" type="java.lang.Long">
<column name="NUM_TOT_RICHIESTE" />
</property>
<property name="codCorrelazione" type="string">
<column name="COD_CORRELAZIONE" />
</property>
<property name="dataKO" type="date">
<column name="DATA_KO" length="7" />
</property>
<property name="dataEspletamentoOrdine" type="date">
<column name="DATA_ESPLETAMENTO_ORDINE" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,217 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoGestioneNotificheDonating generated by hbm2java
*/
public class GnpgoGestioneNotificheDonating implements java.io.Serializable {
private Long uniqueId;
//CAMPI TESTATA
private String codiceOrdine;
private String piattaformaCrm;
private String numeroTelefono;
private String codOpRecipient;
private String codOpDonor;
private String esito;
private Date dataKO; // data invio messaggio se KO
private Long codiceRifiuto;
private String descrizioneRifiuto;
private String codCorrelazione;
//CAMPI DETTAGLIO
private String tipoComunicazione;
private String nomeFileFenp;
private String routingNumber;
private Date dac;
private Date dataInvioRichiesta;
private String codiceSegreto;
private String codiceProgetto;
private Long numTotRichieste;
private Date dataEspletamentoOrdine;
public GnpgoGestioneNotificheDonating() {
}
public GnpgoGestioneNotificheDonating(Long daScodare, String idEsigenza, String piattaformaCrm, String numeroTelefono) {
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
}
public GnpgoGestioneNotificheDonating(Long daScodare, String idEsigenza, String piattaformaCrm, String numeroTelefono, String nomeFileFenp, Date dac, String codCorrelazione, String codiceProgetto, String codiceOrdine, Long numTotRichieste) {
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
this.nomeFileFenp = nomeFileFenp;
this.codCorrelazione = codCorrelazione;
this.dac = dac;
this.codiceProgetto = codiceProgetto;
this.codiceOrdine = codiceOrdine;
this.numTotRichieste = numTotRichieste;
}
public Long getUniqueId() {
return uniqueId;
}
public void setUniqueId(Long uniqueId) {
this.uniqueId = uniqueId;
}
public String getPiattaformaCrm() {
return this.piattaformaCrm;
}
public void setPiattaformaCrm(String piattaformaCrm) {
this.piattaformaCrm = piattaformaCrm;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getNomeFileFenp() {
return this.nomeFileFenp;
}
public void setNomeFileFenp(String nomeFileFenp) {
this.nomeFileFenp = nomeFileFenp;
}
public String getCodCorrelazione() {
return this.codCorrelazione;
}
public void setCodCorrelazione(String codCorrelazione) {
this.codCorrelazione = codCorrelazione;
}
public Date getDac() {
return this.dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCodiceProgetto() {
return this.codiceProgetto;
}
public void setCodiceProgetto(String codiceProgetto) {
this.codiceProgetto = codiceProgetto;
}
public String getCodiceOrdine() {
return this.codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public Long getNumTotRichieste() {
return this.numTotRichieste;
}
public void setNumTotRichieste(Long numTotRichieste) {
this.numTotRichieste = numTotRichieste;
}
public Date getDataInvioRichiesta() {
return this.dataInvioRichiesta;
}
public void setDataInvioRichiesta(Date dataInvioRichiesta) {
this.dataInvioRichiesta = dataInvioRichiesta;
}
public String getEsito() {
return this.esito;
}
public void setEsito(String esito) {
this.esito = esito;
}
public String getCodOpRecipient() {
return this.codOpRecipient;
}
public void setCodOpRecipient(String codOpDonating) {
this.codOpRecipient = codOpDonating;
}
public String getCodOpDonor() {
return this.codOpDonor;
}
public void setCodOpDonor(String codOpDonor) {
this.codOpDonor = codOpDonor;
}
public Date getDataKO() {
return dataKO;
}
public void setDataKO(Date dataKO) {
this.dataKO = dataKO;
}
public Long getCodiceRifiuto() {
return this.codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getDescrizioneRifiuto() {
return this.descrizioneRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public String getTipoComunicazione(){
return this.tipoComunicazione;
}
public void setTipoComunicazione(String tipoComunicazione) {
this.tipoComunicazione = tipoComunicazione;
}
public void setCodiceSegreto(String codiceSegreto) {
this.codiceSegreto = codiceSegreto;
}
public String getCodiceSegreto() {
return this.codiceSegreto;
}
public String getRoutingNumber() {
return this.routingNumber;
}
public void setRoutingNumber(String routingNumber) {
this.routingNumber = routingNumber;
}
public Date getDataEspletamentoOrdine() {
return this.dataEspletamentoOrdine;
}
public void setDataEspletamentoOrdine(Date dataEspletamentoOrdine) {
this.dataEspletamentoOrdine = dataEspletamentoOrdine;
}
}

View File

@@ -0,0 +1,132 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
/**
* GnpgoGestioneNotificheDonatingDAO generated by hbm2java
*/
public class GnpgoGestioneNotificheDonatingDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoGestioneNotificheDonatingDAO.class);
public static final String HP_DN ="numeroTelefono";
public static final String HP_CODICE_ORDINE ="codiceOrdine";
public static final String HP_ID_CORRELAZIONE ="codCorrelazione";
public static final String HP_UNIQUE_ID ="uniqueId";
public List<GnpgoGestioneNotificheDonating> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoGestioneNotificheDonating instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheDonating");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
//crit.addOrder(Order.desc(HP_DN));
//crit.addOrder(Order.desc(HP_IDENTIFICATIVO_TIM));
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
//crit.addOrder(Order.desc(HP_ID_CORRELAZIONE));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public List findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoGestioneNotificheDonating instance with property: " + propertyName + ", value: " + value);
try {
String queryString = "select model from GnpgoGestioneNotificheDonating model where model." + propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
} finally {
closeSession();
}
}
public GnpgoGestioneNotificheDonating findById( Long id) {
log.debug("getting GnpgoGestioneNotificheDonating instance with id: " + id);
try {
GnpgoGestioneNotificheDonating instance = (GnpgoGestioneNotificheDonating) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheDonating", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public void save(GnpgoGestioneNotificheDonating transientInstance) {
log.debug("saving GnpgoGestioneNotificheDonating instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public GnpgoGestioneNotificheDonating merge(GnpgoGestioneNotificheDonating detachedInstance) {
log.debug("merging GnpgoGestioneNotificheDonating instance");
try {
GnpgoGestioneNotificheDonating result = (GnpgoGestioneNotificheDonating) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoGestioneNotificheDonating> findAll() {
log.debug("finding all GnpgoGestioneNotificheDonating ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheDonating");
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,72 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheRecipient" table="GNPGO_NOTIFICHE_RECIPIENT">
<id name="uniqueId" type="java.lang.Long">
<column name="UNIQUE_ID" precision="22" scale="0" />
</id>
<property name="tipoComunicazione" type="string">
<column name="TIPO_COMUNICAZIONE" length="2"/>
</property>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="piattaformaCrm" type="string">
<column name="PIATTAFORMA_CRM" />
</property>
<property name="nomeFileFenp" type="string">
<column name="NOME_FILE_FENP" length="50"/>
</property>
<property name="esito" type="string">
<column name="ESITO" length="2" />
</property>
<property name="codiceRifiuto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneRifiuto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceSegreto" type="string">
<column name="CODICE_SEGRETO" length="3" />
</property>
<property name="codiceProgetto" type="string">
<column name="CODICE_PROGETTO" length="18" />
</property>
<property name="dataInvioRichiesta" type="date">
<column name="DATA_INVIO_RICHIESTA" length="7" />
</property>
<property name="codOpDonating" type="string">
<column name="COD_OP_DONATING" length="3" />
</property>
<property name="codOpDonor" type="string">
<column name="COD_OP_DONOR" length="3" />
</property>
<property name="routingNumber" type="string">
<column name="ROUTING_NUMBER" />
</property>
<property name="numTotRichieste" type="java.lang.Long">
<column name="NUM_TOT_RICHIESTE" />
</property>
<property name="codCorrelazione" type="string">
<column name="COD_CORRELAZIONE" />
</property>
<property name="dataKO" type="date">
<column name="DATA_KO" length="7" />
</property>
<property name="dataEspletamentoOrdine" type="date">
<column name="DATA_ESPLETAMENTO_ORDINE" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,226 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoGestioneNotificheRecipient generated by hbm2java
*/
public class GnpgoGestioneNotificheRecipient implements java.io.Serializable {
private Long uniqueId;
//CAMPI TESTATA
private String idEsigenza;
private String codiceOrdine;
private String piattaformaCrm;
private String numeroTelefono;
private String codOpDonating;
private String codOpDonor;
private String esito;
private Date dataKO; // data invio messaggio se KO
private Long codiceRifiuto;
private String descrizioneRifiuto;
private String codCorrelazione;
//CAMPI DETTAGLIO
private String tipoComunicazione;
private String nomeFileFenp;
private String routingNumber;
private Date dac;
private Date dataInvioRichiesta;
private String codiceSegreto;
private String codiceProgetto;
private Long numTotRichieste;
private Date dataEspletamentoOrdine;
public GnpgoGestioneNotificheRecipient() {
}
public GnpgoGestioneNotificheRecipient(Long daScodare, String idEsigenza, String piattaformaCrm, String numeroTelefono) {
this.idEsigenza = idEsigenza;
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
}
public GnpgoGestioneNotificheRecipient(Long daScodare, String idEsigenza, String piattaformaCrm, String numeroTelefono, String nomeFileFenp, Date dac, String codCorrelazione, String codiceProgetto, String codiceOrdine, Long numTotRichieste) {
this.idEsigenza = idEsigenza;
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
this.nomeFileFenp = nomeFileFenp;
this.codCorrelazione = codCorrelazione;
this.dac = dac;
this.codiceProgetto = codiceProgetto;
this.codiceOrdine = codiceOrdine;
this.numTotRichieste = numTotRichieste;
}
public Long getUniqueId() {
return this.uniqueId;
}
public void setUniqueId(Long uniqueId) {
this.uniqueId = uniqueId;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaCrm() {
return this.piattaformaCrm;
}
public void setPiattaformaCrm(String piattaformaCrm) {
this.piattaformaCrm = piattaformaCrm;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getNomeFileFenp() {
return this.nomeFileFenp;
}
public void setNomeFileFenp(String nomeFileFenp) {
this.nomeFileFenp = nomeFileFenp;
}
public String getCodCorrelazione() {
return this.codCorrelazione;
}
public void setCodCorrelazione(String codCorrelazione) {
this.codCorrelazione = codCorrelazione;
}
public Date getDac() {
return this.dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCodiceProgetto() {
return this.codiceProgetto;
}
public void setCodiceProgetto(String codiceProgetto) {
this.codiceProgetto = codiceProgetto;
}
public String getCodiceOrdine() {
return this.codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public Long getNumTotRichieste() {
return this.numTotRichieste;
}
public void setNumTotRichieste(Long numTotRichieste) {
this.numTotRichieste = numTotRichieste;
}
public Date getDataInvioRichiesta() {
return this.dataInvioRichiesta;
}
public void setDataInvioRichiesta(Date dataInvioRichiesta) {
this.dataInvioRichiesta = dataInvioRichiesta;
}
public String getEsito() {
return this.esito;
}
public void setEsito(String esito) {
this.esito = esito;
}
public String getCodOpDonating() {
return this.codOpDonating;
}
public void setCodOpDonating(String codOpDonating) {
this.codOpDonating = codOpDonating;
}
public String getCodOpDonor() {
return this.codOpDonor;
}
public void setCodOpDonor(String codOpDonor) {
this.codOpDonor = codOpDonor;
}
public Date getDataKO() {
return dataKO;
}
public void setDataKO(Date dataKO) {
this.dataKO = dataKO;
}
public Long getCodiceRifiuto() {
return this.codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getDescrizioneRifiuto() {
return this.descrizioneRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public String getTipoComunicazione(){
return this.tipoComunicazione;
}
public void setTipoComunicazione(String tipoComunicazione) {
this.tipoComunicazione = tipoComunicazione;
}
public void setCodiceSegreto(String codiceSegreto) {
this.codiceSegreto = codiceSegreto;
}
public String getCodiceSegreto() {
return this.codiceSegreto;
}
public String getRoutingNumber() {
return this.routingNumber;
}
public void setRoutingNumber(String routingNumber) {
this.routingNumber = routingNumber;
}
public Date getDataEspletamentoOrdine() {
return this.dataEspletamentoOrdine;
}
public void setDataEspletamentoOrdine(Date dataEspletamentoOrdine) {
this.dataEspletamentoOrdine = dataEspletamentoOrdine;
}
}

View File

@@ -0,0 +1,132 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-set-2017 17.56.39 by Hibernate Tools 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.*;
/**
* GnpgoGestioneNotificheRecipientDAO generated by hbm2java
*/
public class GnpgoGestioneNotificheRecipientDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoGestioneNotificheRecipientDAO.class);
public static final String HP_DN ="numeroTelefono";
public static final String HP_CODICE_ORDINE ="codiceOrdine";
public static final String HP_IDENTIFICATIVO_TIM ="idEsigenza";
public static final String HP_ID_CORRELAZIONE ="codCorrelazione";
public static final String HP_UNIQUE_ID ="uniqueId";
public List findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoGestioneNotificheRecipient instance with property: " + propertyName + ", value: " + value);
try {
String queryString = "select model from GnpgoGestioneNotificheRecipient model where model." + propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
} finally {
closeSession();
}
}
public GnpgoGestioneNotificheRecipient findById( Long id) {
log.debug("getting GnpgoGestioneNotificheRecipient instance with id: " + id);
try {
GnpgoGestioneNotificheRecipient instance = (GnpgoGestioneNotificheRecipient) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheRecipient", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public void save(GnpgoGestioneNotificheRecipient transientInstance) {
log.debug("saving GnpgoGestioneNotificheRecipient instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public GnpgoGestioneNotificheRecipient merge(GnpgoGestioneNotificheRecipient detachedInstance) {
log.debug("merging GnpgoGestioneNotificheDonating instance");
try {
GnpgoGestioneNotificheRecipient result = (GnpgoGestioneNotificheRecipient) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoGestioneNotificheRecipient> findAll() {
log.debug("finding all GnpgoGestioneNotificheRecipient ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheRecipient");
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoGestioneNotificheRecipient> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoGestioneNotificheRecipient instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneNotificheRecipient");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
//crit.addOrder(Order.desc(HP_DN));
//crit.addOrder(Order.desc(HP_IDENTIFICATIVO_TIM));
crit.addOrder(Order.desc(HP_CODICE_ORDINE));
crit.addOrder(Order.asc(HP_UNIQUE_ID));
//crit.addOrder(Order.desc(HP_ID_CORRELAZIONE));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,65 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 29-dic-2014 12.00.46 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteD82" table="GNPGO_GESTIONE_RICHIESTE_D82">
<id name="idRichiesta" type="java.lang.Long">
<column name="ID_RICHIESTA" precision="22" scale="0" />
</id>
<property name="dataCreazione" type="timestamp">
<column name="DATA_CREAZIONE" length="7" />
</property>
<property name="stato" type="java.lang.Long">
<column name="STATO" precision="22" scale="0" />
</property>
<property name="piattaformaCrm" type="string">
<column name="PIATTAFORMA_CRM" length="1" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" />
</property>
<property name="opRecipient" type="string">
<column name="OP_RECIPIENT" length="3" />
</property>
<property name="codiceOrdineRecipient" type="string">
<column name="CODICE_ORDINE_RECIPIENT" length="18" />
</property>
<property name="codiceOrdineWhs" type="string">
<column name="CODICE_ORDINE_WHS" length="18" />
</property>
<property name="cow" type="string">
<column name="COW" length="3" not-null="true" />
</property>
<property name="cos" type="string">
<column name="COS" length="3" />
</property>
<property name="cor" type="string">
<column name="COR" length="12" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceRifiuto" type="string">
<column name="CODICE_MOTIVO_RIFIUTO" length="4" />
</property>
<property name="causaleRifiuto" type="string">
<column name="CAUSALE_RIFIUTO" />
</property>
<property name="codiceSessione" type="string">
<column name="CODICE_SESSIONE" length="50" />
</property>
<property name="dataScadenza" type="date">
<column name="DATA_SCADENZA" length="7" />
</property>
<property name="dataKO" type="date">
<column name="DATA_KO" length="7" />
</property>
<property name="des" type="date">
<column name="DATA_ESPLETAMENTO" length="7" />
</property>
<property name="ultimoEventoNOW" type="string">
<column name="ULTIMO_EVENTO_NOW" length="20" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,189 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-dic-2014 12.00.46 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoGestioneRichiesteD82 generated by hbm2java
*/
public class GnpgoGestioneRichiesteD82 implements java.io.Serializable {
private Long idRichiesta; // da TC1
private Date dataCreazione; // da TC1
private String codiceOrdineRecipient; //da TC1
private String opRecipient; //da TC1
private String numeroTelefono; //da TC1
private String cow; //da TC1
private String cos; //da TC1
private String cor; //da TC1
private String piattaformaCrm; //da TC2
private String codiceSessione; //da TC2
private Date dataScadenza; //da TC2
private Long stato; //0 OK - 1 KO
private Long codiceRifiuto; //da TC2 o TC3
private String causaleRifiuto; //da TC2 o TC3
private Date dataKO; //da TC2 o TC3
private String codiceOrdineWhs; //da NOW N8
private String ultimoEventoNOW; //da NOW N8-N9-N10
private Date dac; //da NOW N8
private Date des; //da NOW N10
public GnpgoGestioneRichiesteD82() {
}
public Long getIdRichiesta() {
return idRichiesta;
}
public void setIdRichiesta(Long idRichiesta) {
this.idRichiesta = idRichiesta;
}
public Date getDataCreazione() {
return dataCreazione;
}
public void setDataCreazione(Date dataCreazione) {
this.dataCreazione = dataCreazione;
}
public String getCodiceOrdineRecipient() {
return codiceOrdineRecipient;
}
public void setCodiceOrdineRecipient(String codiceOrdineRecipient) {
this.codiceOrdineRecipient = codiceOrdineRecipient;
}
public String getOpRecipient() {
return opRecipient;
}
public void setOpRecipient(String opRecipient) {
this.opRecipient = opRecipient;
}
public String getCow() {
return cow;
}
public void setCow(String cow) {
this.cow = cow;
}
public String getCos() {
return cos;
}
public void setCos(String cos) {
this.cos = cos;
}
public String getCor() {
return cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getPiattaformaCrm() {
return piattaformaCrm;
}
public void setPiattaformaCrm(String piattaformaCrm) {
this.piattaformaCrm = piattaformaCrm;
}
public String getCodiceSessione() {
return codiceSessione;
}
public void setCodiceSessione(String codiceSessione) {
this.codiceSessione = codiceSessione;
}
public Date getDataScadenza() {
return dataScadenza;
}
public void setDataScadenza(Date dataScadenza) {
this.dataScadenza = dataScadenza;
}
public Long getStato() {
return stato;
}
public void setStato(Long stato) {
this.stato = stato;
}
public Long getCodiceRifiuto() {
return codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getCausaleRifiuto() {
return causaleRifiuto;
}
public void setCausaleRifiuto(String causaleRifiuto) {
this.causaleRifiuto = causaleRifiuto;
}
public Date getDataKO() {
return dataKO;
}
public void setDataKO(Date dataKO) {
this.dataKO = dataKO;
}
public String getCodiceOrdineWhs() {
return codiceOrdineWhs;
}
public void setCodiceOrdineWhs(String codiceOrdineWhs) {
this.codiceOrdineWhs = codiceOrdineWhs;
}
public String getUltimoEventoNOW() {
return ultimoEventoNOW;
}
public void setUltimoEventoNOW(String ultimoEventoNOW) {
this.ultimoEventoNOW = ultimoEventoNOW;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public Date getDes() {
return des;
}
public void setDes(Date des) {
this.des = des;
}
public String getNumeroTelefono() {
return numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
}

View File

@@ -0,0 +1,266 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 20-nov-2008 12.58.32 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.xmlbeans.impl.xb.xsdschema.RestrictionDocument;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoGestioneRichiesteD82.
*
* @author C.A.
* @see .GnpgoGestioneRichiesteD82
*/
public class GnpgoGestioneRichiesteD82DAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoGestioneRichiesteD82DAO.class);
public static final String HIB_DATA_KO = "dataKO";
public static final String HIB_CODICE_RIFIUTO = "codiceRifiuto";
public static final String HIB_PIATTAFORMA_CRM = "piattaformaCrm";
public static final String HIB_NUMERO_TELEFONO = "numeroTelefono";
public static final String HIB_PROP_CODICE_ORDINE_RECIPIENT = "codiceOrdineRecipient";
public static final String HIB_DATA_RICHIESTA = "dataCreazione";
public static final String HIB_DAC = "dac";
public static final String HIB_COR = "cor";
public void save(GnpgoGestioneRichiesteD82 transientInstance) {
log.debug("saving GnpgoGestioneRichiesteD82 instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoGestioneRichiesteD82> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoGestioneRichiesteD82 instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoGestioneRichiesteD82 model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoGestioneRichiesteD82> findAll() {
log.debug("finding all GnpgoGestioneRichiesteD82 ");
try {
String queryString = " from GnpgoGestioneRichiesteD82";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoGestioneRichiesteD82 instance) {
log.debug("attaching dirty GnpgoGestioneRichiesteD82 instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoGestioneRichiesteD82 instance) {
log.debug("attaching clean GnpgoGestioneRichiesteD82 instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoGestioneRichiesteD82 persistentInstance) {
log.debug("deleting GnpgoGestioneRichiesteD82 instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoGestioneRichiesteD82 merge(GnpgoGestioneRichiesteD82 detachedInstance) {
log.debug("merging GnpgoGestioneRichiesteD82 instance");
try {
GnpgoGestioneRichiesteD82 result = (GnpgoGestioneRichiesteD82) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoGestioneRichiesteD82> findByCriteria(List criterion) {
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteD82");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
return crit.list();
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoGestioneRichiesteD82 findById( Long id) {
log.debug("getting GnpgoGestioneRichiesteD82 instance with id: " + id);
try {
GnpgoGestioneRichiesteD82 instance = (GnpgoGestioneRichiesteD82) getSession().get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteD82", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoGestioneRichiesteD82> findByExample(GnpgoGestioneRichiesteD82 instance) {
log.debug("finding GnpgoGestioneRichiesteD82 instance by example");
try {
List<GnpgoGestioneRichiesteD82> results = (List<GnpgoGestioneRichiesteD82>) getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteD82").add(create(instance)).list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
public GnpgoGestioneRichiesteD82 creaTestataD82(GnpgoGestioneNotificheD82 notifica) {
GnpgoGestioneRichiesteD82 testataD82 = new GnpgoGestioneRichiesteD82();
testataD82.setStato(0L);
//testataD82.setPiattaformaCrm(notifica.getPiattaformaCrm());
testataD82.setNumeroTelefono(notifica.getNumeroTelefono());
testataD82.setIdRichiesta(notifica.getIdRichiesta());
testataD82.setOpRecipient(notifica.getOpRecipient());
testataD82.setCodiceOrdineRecipient(notifica.getCodiceOrdineRecipient());
testataD82.setCor(notifica.getCor());
testataD82.setCos(notifica.getCos());
testataD82.setCow(notifica.getCow());
testataD82.setDataCreazione(notifica.getDataNotifica());
return testataD82;
}
public GnpgoGestioneRichiesteD82 aggiornaTestataD82(GnpgoGestioneNotificheD82 notifica) {
List<Criterion> criterion = new ArrayList<Criterion>();
//criterion.add(Restrictions.eq("idRichiesta", notifica.getIdRichiesta()));
if (findById(notifica.getIdRichiesta()) != null && findByCriteria(criterion).size() > 0) {
GnpgoGestioneRichiesteD82 testataD82 = findByCriteria(criterion).get(0);
if (notifica.getTipoComunicazione().equalsIgnoreCase("2")) {
testataD82.setCodiceSessione(notifica.getCodiceSessione());
testataD82.setStato(notifica.getStato());
testataD82.setCodiceRifiuto(notifica.getCodiceRifiuto());
testataD82.setCausaleRifiuto(notifica.getCausaleRifiuto());
testataD82.setPiattaformaCrm(notifica.getPiattaformaCrm());
testataD82.setDataScadenza(notifica.getDataScadenza());
if (notifica.getStato() == Long.valueOf(1)) {
testataD82.setDataKO(notifica.getDataNotifica());
}
} else if (notifica.getTipoComunicazione().equalsIgnoreCase("3")) {
testataD82.setStato(1L);
testataD82.setDataKO(notifica.getDataNotifica());
testataD82.setCausaleRifiuto(notifica.getCausaleRifiuto());
testataD82.setCodiceRifiuto(notifica.getCodiceRifiuto());
} else if (notifica.getTipoComunicazione().equalsIgnoreCase("N8")) {
testataD82.setCodiceOrdineWhs(notifica.getCodiceOrdineWhs());
testataD82.setUltimoEventoNOW("N8");
} else if (notifica.getTipoComunicazione().equalsIgnoreCase("N10")) {
if (notifica.getDac() != null) {
testataD82.setDac(notifica.getDac());
}
if (notifica.getDes() != null) {
testataD82.setDes(notifica.getDes());
}
if (null != notifica.getTipoEventoFase3()) {
if (notifica.getTipoEventoFase3().equals("2")) {
testataD82.setUltimoEventoNOW("Comunicazione DAC");
} else if (notifica.getTipoEventoFase3().equals("1")){
testataD82.setUltimoEventoNOW("Espletamento KO");
} else if (notifica.getTipoEventoFase3().equals("0")){
testataD82.setUltimoEventoNOW("Espletamento");
} else {
testataD82.setUltimoEventoNOW("Annullamento");
}
}
} else if (notifica.getTipoComunicazione().equalsIgnoreCase("N9")) {
testataD82.setCodiceOrdineWhs(notifica.getCodiceOrdineWhs());
testataD82.setCodiceRifiuto(notifica.getCodiceRifiuto());
testataD82.setCausaleRifiuto(notifica.getCausaleRifiuto());
if (null != notifica.getCodiceRifiuto() && 0L != notifica.getCodiceRifiuto()){
testataD82.setStato(1L);
testataD82.setDataKO(notifica.getDataNotifica());
} else {
testataD82.setStato(0L);
}
testataD82.setUltimoEventoNOW("N9");
}
return testataD82;
}
return null;
}
}

View File

@@ -0,0 +1,305 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 29-dic-2014 12.00.46 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteRec" table="GNPGO_GESTIONE_RICHIESTE_REC">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQ_RICHIESTE_REC</param>
</generator>
</id>
<version name="version" type="java.lang.Long">
<column name="VERSION" precision="22" scale="0" />
</version>
<property name="processo" type="string">
<column name="PROCESSO" length="25" not-null="true" />
</property>
<many-to-one name="gnpgoStatoRec" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoStatoRec" fetch="join">
<column name="STATO" precision="2" scale="0" not-null="true" />
</many-to-one>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaCrm" type="string">
<column name="PIATTAFORMA_CRM" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="cow" type="string">
<column name="COW" length="3" not-null="true" />
</property>
<property name="cos" type="string">
<column name="COS" length="3" />
</property>
<property name="cor" type="string">
<column name="COR" length="12" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codFiscalePIva" type="string">
<column name="COD_FISCALE_P_IVA" length="16" not-null="true" />
</property>
<property name="causaleRifiutoOlo" type="java.lang.Long">
<column name="CAUSALE_RIFIUTO_OLO" precision="2" scale="0" />
</property>
<property name="causaleRifiutoPitagora" type="string">
<column name="CAUSALE_RIFIUTO_PITAGORA" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="dataRicezioneRichiesta" type="date">
<column name="DATA_RICEZIONE_RICHIESTA" length="7" />
</property>
<property name="dataRicezionePic" type="date">
<column name="DATA_RICEZIONE_PIC" length="7" />
</property>
<property name="dataInvioOlo" type="date">
<column name="DATA_INVIO_OLO" length="7" />
</property>
<property name="dataInvioPitagora" type="date">
<column name="DATA_INVIO_PITAGORA" length="7" />
</property>
<property name="codSessioneOlo" type="string">
<column name="COD_SESSIONE_OLO" length="50" />
</property>
<property name="nomeFileOlo" type="string">
<column name="NOME_FILE_OLO" length="50" />
</property>
<property name="nomeFilePitagora" type="string">
<column name="NOME_FILE_PITAGORA" length="50" />
</property>
<property name="nroInviiOlo" type="java.lang.Long">
<column name="NRO_INVII_OLO" precision="3" scale="0" />
</property>
<property name="dataRicezioneKoOlo" type="date">
<column name="DATA_RICEZIONE_KO_OLO" length="7" />
</property>
<property name="dataRicezioneKoPitagora" type="date">
<column name="DATA_RICEZIONE_KO_PITAGORA" length="7" />
</property>
<property name="timestampNotifica" type="java.lang.Long">
<column name="TIMESTAMP_NOTIFICA" precision="22" scale="0" not-null="true" />
</property>
<property name="nroInviiPitagora" type="java.lang.Long">
<column name="NRO_INVII_PITAGORA" precision="3" scale="0" />
</property>
<property name="dataVariazioneStato" type="date">
<column name="DATA_VARIAZIONE_STATO" length="7" not-null="true" />
</property>
<property name="dataFineWait" type="date">
<column name="DATA_FINE_WAIT" length="7" />
</property>
<property name="dataReinvioOlo" type="date">
<column name="DATA_REINVIO_OLO" length="7" />
</property>
<property name="corDuplicato" type="java.lang.Long">
<column name="COR_DUPLICATO" precision="1" scale="0" not-null="true" />
</property>
<property name="dataVerde" type="date">
<column name="DATA_VERDE" length="7" />
</property>
<property name="dataGiallo" type="date">
<column name="DATA_GIALLO" length="7" />
</property>
<property name="dn1" type="string">
<column name="DN1" length="12" />
</property>
<property name="dn2" type="string">
<column name="DN2" length="12" />
</property>
<property name="dn3" type="string">
<column name="DN3" length="12" />
</property>
<property name="dn4" type="string">
<column name="DN4" length="12" />
</property>
<property name="dn5" type="string">
<column name="DN5" length="12" />
</property>
<property name="dn6" type="string">
<column name="DN6" length="12" />
</property>
<property name="dn7" type="string">
<column name="DN7" length="12" />
</property>
<property name="dn8" type="string">
<column name="DN8" length="12" />
</property>
<property name="dn9" type="string">
<column name="DN9" length="12" />
</property>
<property name="dn10" type="string">
<column name="DN10" length="12" />
</property>
<property name="statoDn1" type="string">
<column name="STATO_DN1" length="2" />
</property>
<property name="statoDn2" type="string">
<column name="STATO_DN2" length="2" />
</property>
<property name="statoDn3" type="string">
<column name="STATO_DN3" length="2" />
</property>
<property name="statoDn4" type="string">
<column name="STATO_DN4" length="2" />
</property>
<property name="statoDn5" type="string">
<column name="STATO_DN5" length="2" />
</property>
<property name="statoDn6" type="string">
<column name="STATO_DN6" length="2" />
</property>
<property name="statoDn7" type="string">
<column name="STATO_DN7" length="2" />
</property>
<property name="statoDn8" type="string">
<column name="STATO_DN8" length="2" />
</property>
<property name="statoDn9" type="string">
<column name="STATO_DN9" length="2" />
</property>
<property name="statoDn10" type="string">
<column name="STATO_DN10" length="2" />
</property>
<property name="codCorrelazione" type="string">
<column name="COD_CORRELAZIONE" length="25" />
</property>
<property name="flagDichiarazione" type="string">
<column name="FLAG_DICHIARAZIONE" length="1" not-null="true" />
</property>
<property name="flagDichiarazioneA375" type="string">
<column name="FLAG_DICHIARAZIONE_A375" length="1" />
</property>
<property name="esitoA375Pitagora" type="string">
<column name="ESITO_A375_PITAGORA" length="1" />
</property>
<property name="esitoDnaggA3751" type="string">
<column name="ESITO_DNAGG_A375_1" length="1" />
</property>
<property name="esitoDnaggA3752" type="string">
<column name="ESITO_DNAGG_A375_2" length="1" />
</property>
<property name="esitoDnaggA3753" type="string">
<column name="ESITO_DNAGG_A375_3" length="1" />
</property>
<property name="esitoDnaggA3754" type="string">
<column name="ESITO_DNAGG_A375_4" length="1" />
</property>
<property name="esitoDnaggA3755" type="string">
<column name="ESITO_DNAGG_A375_5" length="1" />
</property>
<property name="esitoDnaggA3756" type="string">
<column name="ESITO_DNAGG_A375_6" length="1" />
</property>
<property name="esitoDnaggA3757" type="string">
<column name="ESITO_DNAGG_A375_7" length="1" />
</property>
<property name="esitoDnaggA3758" type="string">
<column name="ESITO_DNAGG_A375_8" length="1" />
</property>
<property name="esitoDnaggA3759" type="string">
<column name="ESITO_DNAGG_A375_9" length="1" />
</property>
<property name="esitoDnaggA37510" type="string">
<column name="ESITO_DNAGG_A375_10" length="1" />
</property>
<property name="cow2" type="string">
<column name="COW2" length="3" />
</property>
<property name="nroInviiFenp" type="java.lang.Long">
<column name="NRO_INVII_FENP" precision="3" scale="0" not-null="true" />
</property>
<property name="flagGnr" type="string">
<column name="FLAG_GNR" length="1" />
</property>
<property name="flagConsip" type="string">
<column name="FLAG_CONSIP" length="1" />
</property>
<property name="codiceProgetto" type="string">
<column name="CODICE_PROGETTO" length="18" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
<property name="moduloCc" type="string">
<column name="MODULO_CC" length="30" />
</property>
<property name="moduloPartner" type="string">
<column name="MODULO_PARTNER" length="30" />
</property>
<property name="protocolloDms" type="string">
<column name="PROTOCOLLO_DMS" length="100" />
</property>
<property name="dataCreazioneSr" type="timestamp">
<column name="DATA_CREAZIONE_SR" length="7" />
</property>
<property name="idPadre" type="string">
<column name="ID_PADRE" length="15" />
</property>
<property name="causaleKo" type="string">
<column name="CAUSALE_KO" length="200" />
</property>
<property name="dataChiusuraCrm" type="timestamp">
<column name="DATA_CHIUSURA_CRM" length="7" />
</property>
<property name="dataPrimaEsigenza" type="timestamp">
<column name="DATA_PRIMA_ESIGENZA" length="7" />
</property>
<property name="codiceMotivoRifiutoFenp" type="java.lang.Long">
<column name="CODICE_MOTIVO_RIFIUTO_FENP" precision="2" scale="0" />
</property>
<property name="cor2" type="string">
<column name="COR2" length="12" />
</property>
<property name="cos2" type="string">
<column name="COS2" length="3" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="dataRicezioneTipoComm2" type="timestamp">
<column name="DATA_RICEZIONE_TIPO_COMM2" length="7" />
</property>
<property name="subCorrelazione" type="string">
<column name="SUB_CORRELAZIONE" length="15" />
</property>
<property name="numTotRichieste" type="java.lang.Long">
<column name="NUM_TOT_RICHIESTE" precision="22" scale="0" />
</property>
<property name="numSubRichieste" type="java.lang.Long">
<column name="NUM_SUB_RICHIESTE" precision="22" scale="0" />
</property>
<property name="rnb" type="string">
<column name="RNB" length="18" />
</property>
<property name="primario" type="string">
<column name="PRIMARIO" length="12" />
</property>
<property name="radicale" type="string">
<column name="RADICALE" length="12" />
</property>
<property name="idOlFittizio" type="string">
<column name="ID_OL_FITTIZIO" length="15" />
</property>
<property name="classificazione" type="string">
<column name="CLASSIFICAZIONE" length="2" />
</property>
<property name="nominativoCliente" type="string">
<column name="NOMINATIVO_CLIENTE" length="100" />
</property>
<property name="recapitoAlternativo" type="string">
<column name="RECAPITO_ALTERNATIVO" length="20" />
</property>
<property name="flagSky" type="string">
<column name="FLAG_SKY" length="1" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,933 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 29-dic-2014 12.00.46 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoGestioneRichiesteRec generated by hbm2java
*/
public class GnpgoGestioneRichiesteRec implements java.io.Serializable {
private Long idProg;
private Long version;
private String processo;
private Long stato;
private String idEsigenza;
private String piattaformaCrm;
private String numeroTelefono;
private String cow;
private String cos;
private String cor;
private Date dac;
private String codFiscalePIva;
private Long causaleRifiutoOlo;
private String causaleRifiutoPitagora;
private String canaleVendita;
private String marcaggio;
private Date dataRicezioneRichiesta;
private Date dataRicezionePic;
private Date dataInvioOlo;
private Date dataInvioPitagora;
private String codSessioneOlo;
private String nomeFileOlo;
private String nomeFilePitagora;
private Long nroInviiOlo;
private Date dataRicezioneKoOlo;
private Date dataRicezioneKoPitagora;
private Long timestampNotifica;
private Long nroInviiPitagora;
private Date dataVariazioneStato;
private Date dataFineWait;
private Date dataReinvioOlo;
private Long corDuplicato;
private Date dataVerde;
private Date dataGiallo;
private String dn1;
private String dn2;
private String dn3;
private String dn4;
private String dn5;
private String dn6;
private String dn7;
private String dn8;
private String dn9;
private String dn10;
private String statoDn1;
private String statoDn2;
private String statoDn3;
private String statoDn4;
private String statoDn5;
private String statoDn6;
private String statoDn7;
private String statoDn8;
private String statoDn9;
private String statoDn10;
private String codCorrelazione;
private String flagDichiarazione;
private String flagDichiarazioneA375;
private String esitoA375Pitagora;
private String esitoDnaggA3751;
private String esitoDnaggA3752;
private String esitoDnaggA3753;
private String esitoDnaggA3754;
private String esitoDnaggA3755;
private String esitoDnaggA3756;
private String esitoDnaggA3757;
private String esitoDnaggA3758;
private String esitoDnaggA3759;
private String esitoDnaggA37510;
private String cow2;
private Long nroInviiFenp;
private String flagGnr;
private String flagConsip;
private String codiceProgetto;
private String cowOrigine;
private String moduloCc;
private String moduloPartner;
private String protocolloDms;
private Date dataCreazioneSr;
private String idPadre;
private String causaleKo;
private Date dataChiusuraCrm;
private GnpgoStatoRec gnpgoStatoRec;
private Date dataPrimaEsigenza;
private Long codiceMotivoRifiutoFenp;
private String cor2;
private String cos2;
private String codiceOrdine;
private Date dataRicezioneTipoComm2;
private String subCorrelazione;
private Long numTotRichieste;
private Long numSubRichieste;
private String rnb;
private String primario;
private String radicale;
private String idOlFittizio;
private String classificazione;
private String nominativoCliente;
private String recapitoAlternativo;
private String flagSky;
public GnpgoStatoRec getGnpgoStatoRec() {
return gnpgoStatoRec;
}
public void setGnpgoStatoRec(GnpgoStatoRec gnpgoStatoRec) {
this.gnpgoStatoRec = gnpgoStatoRec;
}
public GnpgoGestioneRichiesteRec() {
gnpgoStatoRec= new GnpgoStatoRec();
}
public GnpgoGestioneRichiesteRec(String processo, Long stato, String idEsigenza, String piattaformaCrm, String numeroTelefono, String cow, String codFiscalePIva, Long timestampNotifica, Date dataVariazioneStato, Long corDuplicato, String flagDichiarazione, Long nroInviiFenp) {
this.processo = processo;
this.stato = stato;
this.idEsigenza = idEsigenza;
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
this.cow = cow;
this.codFiscalePIva = codFiscalePIva;
this.timestampNotifica = timestampNotifica;
this.dataVariazioneStato = dataVariazioneStato;
this.corDuplicato = corDuplicato;
this.flagDichiarazione = flagDichiarazione;
this.nroInviiFenp = nroInviiFenp;
}
public GnpgoGestioneRichiesteRec(String processo, Long stato, String idEsigenza, String piattaformaCrm, String numeroTelefono, String cow, String cos, String cor, Date dac, String codFiscalePIva, Long causaleRifiutoOlo, String causaleRifiutoPitagora, String canaleVendita, String marcaggio, Date dataRicezioneRichiesta, Date dataRicezionePic, Date dataInvioOlo, Date dataInvioPitagora, String codSessioneOlo, String nomeFileOlo, String nomeFilePitagora, Long nroInviiOlo, Date dataRicezioneKoOlo, Date dataRicezioneKoPitagora, Long timestampNotifica, Long nroInviiPitagora, Date dataVariazioneStato, Date dataFineWait, Date dataReinvioOlo, Long corDuplicato, Date dataVerde, Date dataGiallo, String dn1, String dn2, String dn3, String dn4, String dn5, String dn6, String dn7, String dn8, String dn9, String dn10, String statoDn1, String statoDn2, String statoDn3, String statoDn4, String statoDn5, String statoDn6, String statoDn7, String statoDn8, String statoDn9, String statoDn10, String codCorrelazione, String flagDichiarazione, String flagDichiarazioneA375, String esitoA375Pitagora, String esitoDnaggA3751, String esitoDnaggA3752, String esitoDnaggA3753, String esitoDnaggA3754, String esitoDnaggA3755, String esitoDnaggA3756, String esitoDnaggA3757, String esitoDnaggA3758, String esitoDnaggA3759, String esitoDnaggA37510, String cow2, Long nroInviiFenp, String flagGnr, String flagConsip, String codiceProgetto, String cowOrigine, String moduloCc, String moduloPartner, String protocolloDms, Date dataCreazioneSr, String idPadre, String causaleKo, Date dataChiusuraCrm, Date dataPrimaEsigenza, Long codiceMotivoRifiutoFenp, String cor2, String cos2, String codiceOrdine, Date dataRicezioneTipoComm2, String subCorrelazione, Long numTotRichieste, Long numSubRichieste, String rnb, String primario, String radicale, String idOlFittizio, String classificazione, String nominativoCliente, String recapitoAlternativo, String flagSky) {
this.processo = processo;
this.stato = stato;
this.idEsigenza = idEsigenza;
this.piattaformaCrm = piattaformaCrm;
this.numeroTelefono = numeroTelefono;
this.cow = cow;
this.cos = cos;
this.cor = cor;
this.dac = dac;
this.codFiscalePIva = codFiscalePIva;
this.causaleRifiutoOlo = causaleRifiutoOlo;
this.causaleRifiutoPitagora = causaleRifiutoPitagora;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.dataRicezioneRichiesta = dataRicezioneRichiesta;
this.dataRicezionePic = dataRicezionePic;
this.dataInvioOlo = dataInvioOlo;
this.dataInvioPitagora = dataInvioPitagora;
this.codSessioneOlo = codSessioneOlo;
this.nomeFileOlo = nomeFileOlo;
this.nomeFilePitagora = nomeFilePitagora;
this.nroInviiOlo = nroInviiOlo;
this.dataRicezioneKoOlo = dataRicezioneKoOlo;
this.dataRicezioneKoPitagora = dataRicezioneKoPitagora;
this.timestampNotifica = timestampNotifica;
this.nroInviiPitagora = nroInviiPitagora;
this.dataVariazioneStato = dataVariazioneStato;
this.dataFineWait = dataFineWait;
this.dataReinvioOlo = dataReinvioOlo;
this.corDuplicato = corDuplicato;
this.dataVerde = dataVerde;
this.dataGiallo = dataGiallo;
this.dn1 = dn1;
this.dn2 = dn2;
this.dn3 = dn3;
this.dn4 = dn4;
this.dn5 = dn5;
this.dn6 = dn6;
this.dn7 = dn7;
this.dn8 = dn8;
this.dn9 = dn9;
this.dn10 = dn10;
this.statoDn1 = statoDn1;
this.statoDn2 = statoDn2;
this.statoDn3 = statoDn3;
this.statoDn4 = statoDn4;
this.statoDn5 = statoDn5;
this.statoDn6 = statoDn6;
this.statoDn7 = statoDn7;
this.statoDn8 = statoDn8;
this.statoDn9 = statoDn9;
this.statoDn10 = statoDn10;
this.codCorrelazione = codCorrelazione;
this.flagDichiarazione = flagDichiarazione;
this.flagDichiarazioneA375 = flagDichiarazioneA375;
this.esitoA375Pitagora = esitoA375Pitagora;
this.esitoDnaggA3751 = esitoDnaggA3751;
this.esitoDnaggA3752 = esitoDnaggA3752;
this.esitoDnaggA3753 = esitoDnaggA3753;
this.esitoDnaggA3754 = esitoDnaggA3754;
this.esitoDnaggA3755 = esitoDnaggA3755;
this.esitoDnaggA3756 = esitoDnaggA3756;
this.esitoDnaggA3757 = esitoDnaggA3757;
this.esitoDnaggA3758 = esitoDnaggA3758;
this.esitoDnaggA3759 = esitoDnaggA3759;
this.esitoDnaggA37510 = esitoDnaggA37510;
this.cow2 = cow2;
this.nroInviiFenp = nroInviiFenp;
this.flagGnr = flagGnr;
this.flagConsip = flagConsip;
this.codiceProgetto = codiceProgetto;
this.cowOrigine = cowOrigine;
this.moduloCc = moduloCc;
this.moduloPartner = moduloPartner;
this.protocolloDms = protocolloDms;
this.dataCreazioneSr = dataCreazioneSr;
this.idPadre = idPadre;
this.causaleKo = causaleKo;
this.dataChiusuraCrm = dataChiusuraCrm;
this.dataPrimaEsigenza = dataPrimaEsigenza;
this.codiceMotivoRifiutoFenp = codiceMotivoRifiutoFenp;
this.cor2 = cor2;
this.cos2 = cos2;
this.codiceOrdine = codiceOrdine;
this.dataRicezioneTipoComm2 = dataRicezioneTipoComm2;
this.subCorrelazione = subCorrelazione;
this.numTotRichieste = numTotRichieste;
this.numSubRichieste = numSubRichieste;
this.rnb = rnb;
this.primario = primario;
this.radicale = radicale;
this.idOlFittizio = idOlFittizio;
this.classificazione = classificazione;
this.nominativoCliente = nominativoCliente;
this.recapitoAlternativo = recapitoAlternativo;
this.flagSky = flagSky;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public Long getVersion() {
return this.version;
}
public void setVersion(Long version) {
this.version = version;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Long getStato() {
return this.stato;
}
public void setStato(Long stato) {
this.stato = stato;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaCrm() {
return this.piattaformaCrm;
}
public void setPiattaformaCrm(String piattaformaCrm) {
this.piattaformaCrm = piattaformaCrm;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCow() {
return this.cow;
}
public void setCow(String cow) {
this.cow = cow;
}
public String getCos() {
return this.cos;
}
public void setCos(String cos) {
this.cos = cos;
}
public String getCor() {
return this.cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public Date getDac() {
return this.dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCodFiscalePIva() {
return this.codFiscalePIva;
}
public void setCodFiscalePIva(String codFiscalePIva) {
this.codFiscalePIva = codFiscalePIva;
}
public Long getCausaleRifiutoOlo() {
return this.causaleRifiutoOlo;
}
public void setCausaleRifiutoOlo(Long causaleRifiutoOlo) {
this.causaleRifiutoOlo = causaleRifiutoOlo;
}
public String getCausaleRifiutoPitagora() {
return this.causaleRifiutoPitagora;
}
public void setCausaleRifiutoPitagora(String causaleRifiutoPitagora) {
this.causaleRifiutoPitagora = causaleRifiutoPitagora;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public Date getDataRicezioneRichiesta() {
return this.dataRicezioneRichiesta;
}
public void setDataRicezioneRichiesta(Date dataRicezioneRichiesta) {
this.dataRicezioneRichiesta = dataRicezioneRichiesta;
}
public Date getDataRicezionePic() {
return this.dataRicezionePic;
}
public void setDataRicezionePic(Date dataRicezionePic) {
this.dataRicezionePic = dataRicezionePic;
}
public Date getDataInvioOlo() {
return this.dataInvioOlo;
}
public void setDataInvioOlo(Date dataInvioOlo) {
this.dataInvioOlo = dataInvioOlo;
}
public Date getDataInvioPitagora() {
return this.dataInvioPitagora;
}
public void setDataInvioPitagora(Date dataInvioPitagora) {
this.dataInvioPitagora = dataInvioPitagora;
}
public String getCodSessioneOlo() {
return this.codSessioneOlo;
}
public void setCodSessioneOlo(String codSessioneOlo) {
this.codSessioneOlo = codSessioneOlo;
}
public String getNomeFileOlo() {
return this.nomeFileOlo;
}
public void setNomeFileOlo(String nomeFileOlo) {
this.nomeFileOlo = nomeFileOlo;
}
public String getNomeFilePitagora() {
return this.nomeFilePitagora;
}
public void setNomeFilePitagora(String nomeFilePitagora) {
this.nomeFilePitagora = nomeFilePitagora;
}
public Long getNroInviiOlo() {
return this.nroInviiOlo;
}
public void setNroInviiOlo(Long nroInviiOlo) {
this.nroInviiOlo = nroInviiOlo;
}
public Date getDataRicezioneKoOlo() {
return this.dataRicezioneKoOlo;
}
public void setDataRicezioneKoOlo(Date dataRicezioneKoOlo) {
this.dataRicezioneKoOlo = dataRicezioneKoOlo;
}
public Date getDataRicezioneKoPitagora() {
return this.dataRicezioneKoPitagora;
}
public void setDataRicezioneKoPitagora(Date dataRicezioneKoPitagora) {
this.dataRicezioneKoPitagora = dataRicezioneKoPitagora;
}
public Long getTimestampNotifica() {
return this.timestampNotifica;
}
public void setTimestampNotifica(Long timestampNotifica) {
this.timestampNotifica = timestampNotifica;
}
public Long getNroInviiPitagora() {
return this.nroInviiPitagora;
}
public void setNroInviiPitagora(Long nroInviiPitagora) {
this.nroInviiPitagora = nroInviiPitagora;
}
public Date getDataVariazioneStato() {
return this.dataVariazioneStato;
}
public void setDataVariazioneStato(Date dataVariazioneStato) {
this.dataVariazioneStato = dataVariazioneStato;
}
public Date getDataFineWait() {
return this.dataFineWait;
}
public void setDataFineWait(Date dataFineWait) {
this.dataFineWait = dataFineWait;
}
public Date getDataReinvioOlo() {
return this.dataReinvioOlo;
}
public void setDataReinvioOlo(Date dataReinvioOlo) {
this.dataReinvioOlo = dataReinvioOlo;
}
public Long getCorDuplicato() {
return this.corDuplicato;
}
public void setCorDuplicato(Long corDuplicato) {
this.corDuplicato = corDuplicato;
}
public Date getDataVerde() {
return this.dataVerde;
}
public void setDataVerde(Date dataVerde) {
this.dataVerde = dataVerde;
}
public Date getDataGiallo() {
return this.dataGiallo;
}
public void setDataGiallo(Date dataGiallo) {
this.dataGiallo = dataGiallo;
}
public String getDn1() {
return this.dn1;
}
public void setDn1(String dn1) {
this.dn1 = dn1;
}
public String getDn2() {
return this.dn2;
}
public void setDn2(String dn2) {
this.dn2 = dn2;
}
public String getDn3() {
return this.dn3;
}
public void setDn3(String dn3) {
this.dn3 = dn3;
}
public String getDn4() {
return this.dn4;
}
public void setDn4(String dn4) {
this.dn4 = dn4;
}
public String getDn5() {
return this.dn5;
}
public void setDn5(String dn5) {
this.dn5 = dn5;
}
public String getDn6() {
return this.dn6;
}
public void setDn6(String dn6) {
this.dn6 = dn6;
}
public String getDn7() {
return this.dn7;
}
public void setDn7(String dn7) {
this.dn7 = dn7;
}
public String getDn8() {
return this.dn8;
}
public void setDn8(String dn8) {
this.dn8 = dn8;
}
public String getDn9() {
return this.dn9;
}
public void setDn9(String dn9) {
this.dn9 = dn9;
}
public String getDn10() {
return this.dn10;
}
public void setDn10(String dn10) {
this.dn10 = dn10;
}
public String getStatoDn1() {
return this.statoDn1;
}
public void setStatoDn1(String statoDn1) {
this.statoDn1 = statoDn1;
}
public String getStatoDn2() {
return this.statoDn2;
}
public void setStatoDn2(String statoDn2) {
this.statoDn2 = statoDn2;
}
public String getStatoDn3() {
return this.statoDn3;
}
public void setStatoDn3(String statoDn3) {
this.statoDn3 = statoDn3;
}
public String getStatoDn4() {
return this.statoDn4;
}
public void setStatoDn4(String statoDn4) {
this.statoDn4 = statoDn4;
}
public String getStatoDn5() {
return this.statoDn5;
}
public void setStatoDn5(String statoDn5) {
this.statoDn5 = statoDn5;
}
public String getStatoDn6() {
return this.statoDn6;
}
public void setStatoDn6(String statoDn6) {
this.statoDn6 = statoDn6;
}
public String getStatoDn7() {
return this.statoDn7;
}
public void setStatoDn7(String statoDn7) {
this.statoDn7 = statoDn7;
}
public String getStatoDn8() {
return this.statoDn8;
}
public void setStatoDn8(String statoDn8) {
this.statoDn8 = statoDn8;
}
public String getStatoDn9() {
return this.statoDn9;
}
public void setStatoDn9(String statoDn9) {
this.statoDn9 = statoDn9;
}
public String getStatoDn10() {
return this.statoDn10;
}
public void setStatoDn10(String statoDn10) {
this.statoDn10 = statoDn10;
}
public String getCodCorrelazione() {
return this.codCorrelazione;
}
public void setCodCorrelazione(String codCorrelazione) {
this.codCorrelazione = codCorrelazione;
}
public String getFlagDichiarazione() {
return this.flagDichiarazione;
}
public void setFlagDichiarazione(String flagDichiarazione) {
this.flagDichiarazione = flagDichiarazione;
}
public String getFlagDichiarazioneA375() {
return this.flagDichiarazioneA375;
}
public void setFlagDichiarazioneA375(String flagDichiarazioneA375) {
this.flagDichiarazioneA375 = flagDichiarazioneA375;
}
public String getEsitoA375Pitagora() {
return this.esitoA375Pitagora;
}
public void setEsitoA375Pitagora(String esitoA375Pitagora) {
this.esitoA375Pitagora = esitoA375Pitagora;
}
public String getEsitoDnaggA3751() {
return this.esitoDnaggA3751;
}
public void setEsitoDnaggA3751(String esitoDnaggA3751) {
this.esitoDnaggA3751 = esitoDnaggA3751;
}
public String getEsitoDnaggA3752() {
return this.esitoDnaggA3752;
}
public void setEsitoDnaggA3752(String esitoDnaggA3752) {
this.esitoDnaggA3752 = esitoDnaggA3752;
}
public String getEsitoDnaggA3753() {
return this.esitoDnaggA3753;
}
public void setEsitoDnaggA3753(String esitoDnaggA3753) {
this.esitoDnaggA3753 = esitoDnaggA3753;
}
public String getEsitoDnaggA3754() {
return this.esitoDnaggA3754;
}
public void setEsitoDnaggA3754(String esitoDnaggA3754) {
this.esitoDnaggA3754 = esitoDnaggA3754;
}
public String getEsitoDnaggA3755() {
return this.esitoDnaggA3755;
}
public void setEsitoDnaggA3755(String esitoDnaggA3755) {
this.esitoDnaggA3755 = esitoDnaggA3755;
}
public String getEsitoDnaggA3756() {
return this.esitoDnaggA3756;
}
public void setEsitoDnaggA3756(String esitoDnaggA3756) {
this.esitoDnaggA3756 = esitoDnaggA3756;
}
public String getEsitoDnaggA3757() {
return this.esitoDnaggA3757;
}
public void setEsitoDnaggA3757(String esitoDnaggA3757) {
this.esitoDnaggA3757 = esitoDnaggA3757;
}
public String getEsitoDnaggA3758() {
return this.esitoDnaggA3758;
}
public void setEsitoDnaggA3758(String esitoDnaggA3758) {
this.esitoDnaggA3758 = esitoDnaggA3758;
}
public String getEsitoDnaggA3759() {
return this.esitoDnaggA3759;
}
public void setEsitoDnaggA3759(String esitoDnaggA3759) {
this.esitoDnaggA3759 = esitoDnaggA3759;
}
public String getEsitoDnaggA37510() {
return this.esitoDnaggA37510;
}
public void setEsitoDnaggA37510(String esitoDnaggA37510) {
this.esitoDnaggA37510 = esitoDnaggA37510;
}
public String getCow2() {
return this.cow2;
}
public void setCow2(String cow2) {
this.cow2 = cow2;
}
public Long getNroInviiFenp() {
return this.nroInviiFenp;
}
public void setNroInviiFenp(Long nroInviiFenp) {
this.nroInviiFenp = nroInviiFenp;
}
public String getFlagGnr() {
return this.flagGnr;
}
public void setFlagGnr(String flagGnr) {
this.flagGnr = flagGnr;
}
public String getFlagConsip() {
return this.flagConsip;
}
public void setFlagConsip(String flagConsip) {
this.flagConsip = flagConsip;
}
public String getCodiceProgetto() {
return this.codiceProgetto;
}
public void setCodiceProgetto(String codiceProgetto) {
this.codiceProgetto = codiceProgetto;
}
public String getCowOrigine() {
return this.cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public String getModuloCc() {
return this.moduloCc;
}
public void setModuloCc(String moduloCc) {
this.moduloCc = moduloCc;
}
public String getModuloPartner() {
return this.moduloPartner;
}
public void setModuloPartner(String moduloPartner) {
this.moduloPartner = moduloPartner;
}
public String getProtocolloDms() {
return this.protocolloDms;
}
public void setProtocolloDms(String protocolloDms) {
this.protocolloDms = protocolloDms;
}
public Date getDataCreazioneSr() {
return this.dataCreazioneSr;
}
public void setDataCreazioneSr(Date dataCreazioneSr) {
this.dataCreazioneSr = dataCreazioneSr;
}
public String getIdPadre() {
return this.idPadre;
}
public void setIdPadre(String idPadre) {
this.idPadre = idPadre;
}
public String getCausaleKo() {
return this.causaleKo;
}
public void setCausaleKo(String causaleKo) {
this.causaleKo = causaleKo;
}
public Date getDataChiusuraCrm() {
return this.dataChiusuraCrm;
}
public void setDataChiusuraCrm(Date dataChiusuraCrm) {
this.dataChiusuraCrm = dataChiusuraCrm;
}
public Date getDataPrimaEsigenza() {
return this.dataPrimaEsigenza;
}
public void setDataPrimaEsigenza(Date dataPrimaEsigenza) {
this.dataPrimaEsigenza = dataPrimaEsigenza;
}
public Long getCodiceMotivoRifiutoFenp() {
return this.codiceMotivoRifiutoFenp;
}
public void setCodiceMotivoRifiutoFenp(Long codiceMotivoRifiutoFenp) {
this.codiceMotivoRifiutoFenp = codiceMotivoRifiutoFenp;
}
public String getCor2() {
return this.cor2;
}
public void setCor2(String cor2) {
this.cor2 = cor2;
}
public String getCos2() {
return this.cos2;
}
public void setCos2(String cos2) {
this.cos2 = cos2;
}
public String getCodiceOrdine() {
return this.codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public Date getDataRicezioneTipoComm2() {
return this.dataRicezioneTipoComm2;
}
public void setDataRicezioneTipoComm2(Date dataRicezioneTipoComm2) {
this.dataRicezioneTipoComm2 = dataRicezioneTipoComm2;
}
public String getSubCorrelazione() {
return this.subCorrelazione;
}
public void setSubCorrelazione(String subCorrelazione) {
this.subCorrelazione = subCorrelazione;
}
public Long getNumTotRichieste() {
return this.numTotRichieste;
}
public void setNumTotRichieste(Long numTotRichieste) {
this.numTotRichieste = numTotRichieste;
}
public Long getNumSubRichieste() {
return this.numSubRichieste;
}
public void setNumSubRichieste(Long numSubRichieste) {
this.numSubRichieste = numSubRichieste;
}
public String getRnb() {
return this.rnb;
}
public void setRnb(String rnb) {
this.rnb = rnb;
}
public String getPrimario() {
return this.primario;
}
public void setPrimario(String primario) {
this.primario = primario;
}
public String getRadicale() {
return this.radicale;
}
public void setRadicale(String radicale) {
this.radicale = radicale;
}
public String getIdOlFittizio() {
return this.idOlFittizio;
}
public void setIdOlFittizio(String idOlFittizio) {
this.idOlFittizio = idOlFittizio;
}
public String getClassificazione() {
return this.classificazione;
}
public void setClassificazione(String classificazione) {
this.classificazione = classificazione;
}
public String getNominativoCliente() {
return this.nominativoCliente;
}
public void setNominativoCliente(String nominativoCliente) {
this.nominativoCliente = nominativoCliente;
}
public String getRecapitoAlternativo() {
return this.recapitoAlternativo;
}
public void setRecapitoAlternativo(String recapitoAlternativo) {
this.recapitoAlternativo = recapitoAlternativo;
}
public String getFlagSky() {
return this.flagSky;
}
public void setFlagSky(String flagSky) {
this.flagSky = flagSky;
}
}

View File

@@ -0,0 +1,241 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 20-nov-2008 12.58.32 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoGestioneRichiesteRec.
* @see .GnpgoGestioneRichiesteRec
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoGestioneRichiesteRecDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoGestioneRichiesteRecDAO.class);
public static final String HIB_PROP_ID_ESIGENZA="idEsigenza";
public static final String HIB_PROP_STATO = "gnpgoStatoRec";
public static final String HIB_PROP_COR_DUPLICATO = "corDuplicato";
public static final String HIB_PIATTAFORMA_CRM = "piattaformaCrm";
public static final String HIB_NUMERO_TELEFONO = "numeroTelefono";
public static final String HIB_DAC = "dac";
public static final String HIB_COR = "cor";
public static final String HIB_COD_FISCALE_PIVA = "codFiscalePIva";
public static final String HIB_CAUS_RIFIUTO_OLO = "causaleRifiutoOlo";
public static final String HIB_CAUS_RIFIUTO_PITAGORA = "causaleRifiutoPitagora";
public static final String HIB_MARCAGGIO = "marcaggio";
public static final String HIB_DATA_RIC_RICHIESTA = "dataRicezioneRichiesta";
public static final String HIB_DATA_RIC_PIC = "dataRicezionePic";
public static final String HIB_DATA_INVIO_OLO = "dataInvioOlo";
public static final String HIB_DATA_INVIO_PITAGORA = "dataInvioPitagora";
public static final String HIB_COD_SESSIONE_OLO = "codSessioneOlo";
public static final String HIB_NOME_FILE_OLO = "nomeFileOlo";
public static final String HIB_NOME_FILE_PITAGORA = "nomeFilePitagora";
public static final String HIB_NUMERO_INVII_OLO = "nroInviiOlo";
public static final String HIB_DATA_RICEZIONE_KO_OLO = "dataRicezioneKoOlo";
public static final String HIB_DATA_RICEZIONE_KO_PITAGORA = "dataRicezioneKoPitagora";
public static final String HIB_TIMESTAMP_NOTIFICA = "timestampNotifica";
public static final String HIB_COD_CORRELAZIONE = "codCorrelazione";
public static final String HIB_FLAG_DICHIARAZIONE = "flagDichiarazione";
public static final String HIB_FLAG_DICHIARAZIONE_A375 = "flagDichiarazioneA375";
public static final String HIB_ESITO_A375_PITAGORA = "esitoA375Pitagora";
public static final String HIB_COW2 = "cow2";
public static final String HIB_CANALE_VENDITA = "canaleVendita";
public static final String HIB_DN1 = "dn1";
public static final String HIB_DN2 = "dn2";
public static final String HIB_DN3 = "dn3";
public static final String HIB_DN4 = "dn4";
public static final String HIB_DN5 = "dn5";
public static final String HIB_DN6 = "dn6";
public static final String HIB_DN7 = "dn7";
public static final String HIB_DN8 = "dn8";
public static final String HIB_DN9 = "dn9";
public static final String HIB_DN10 = "dn10";
public static final String HIB_STATO_DN1 = "statoDn1";
public static final String HIB_STATO_DN2 = "statoDn2";
public static final String HIB_STATO_DN3 = "statoDn3";
public static final String HIB_STATO_DN4 = "statoDn4";
public static final String HIB_STATO_DN5 = "statoDn5";
public static final String HIB_STATO_DN6 = "statoDn6";
public static final String HIB_STATO_DN7 = "statoDn7";
public static final String HIB_STATO_DN8 = "statoDn8";
public static final String HIB_STATO_DN9 = "statoDn9";
public static final String HIB_STATO_DN10 = "statoDn10";
public static final String HIB_ESITO_DNAGG_A375_1 = "esitoDnaggA3751";
public static final String HIB_ESITO_DNAGG_A375_2 = "esitoDnaggA3752";
public static final String HIB_ESITO_DNAGG_A375_3 = "esitoDnaggA3753";
public static final String HIB_ESITO_DNAGG_A375_4 = "esitoDnaggA3754";
public static final String HIB_ESITO_DNAGG_A375_5 = "esitoDnaggA3755";
public static final String HIB_ESITO_DNAGG_A375_6 = "esitoDnaggA3756";
public static final String HIB_ESITO_DNAGG_A375_7 = "esitoDnaggA3757";
public static final String HIB_ESITO_DNAGG_A375_8 = "esitoDnaggA3758";
public static final String HIB_ESITO_DNAGG_A375_9 = "esitoDnaggA3759";
public static final String HIB_ESITO_DNAGG_A375_10 = "esitoDnaggA37510";
public static final String HIB_FLAG_GNR = "flagGnr";
public static final String HIB_FLAG_CONSIP = "flagConsip";
public static final String HIB_CODICE_PROGETTO = "codiceProgetto";
public static final String HIB_COW_ORIGINE = "cowOrigine";
public static final String HIB_OWNER = "owner";
public void save(GnpgoGestioneRichiesteRec transientInstance) {
log.debug("saving GnpgoGestioneRichiesteRec instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoGestioneRichiesteRec> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoGestioneRichiesteRec instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoGestioneRichiesteRec model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoGestioneRichiesteRec> findAll() {
log.debug("finding all GnpgoGestioneRichiesteRec ");
try {
String queryString = " from GnpgoGestioneRichiesteRec";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoGestioneRichiesteRec instance) {
log.debug("attaching dirty GnpgoGestioneRichiesteRec instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoGestioneRichiesteRec instance) {
log.debug("attaching clean GnpgoGestioneRichiesteRec instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoGestioneRichiesteRec persistentInstance) {
log.debug("deleting GnpgoGestioneRichiesteRec instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoGestioneRichiesteRec merge(GnpgoGestioneRichiesteRec detachedInstance) {
log.debug("merging GnpgoGestioneRichiesteRec instance");
try {
GnpgoGestioneRichiesteRec result = (GnpgoGestioneRichiesteRec) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoGestioneRichiesteRec> findByCriteria(List criterion) {
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteRec");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
return crit.list();
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoGestioneRichiesteRec findById( java.lang.Long id) {
log.debug("getting GnpgoGestioneRichiesteRec instance with id: " + id);
try {
GnpgoGestioneRichiesteRec instance = (GnpgoGestioneRichiesteRec) getSession().get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteRec", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoGestioneRichiesteRec> findByExample(GnpgoGestioneRichiesteRec instance) {
log.debug("finding GnpgoGestioneRichiesteRec instance by example");
try {
List<GnpgoGestioneRichiesteRec> results = (List<GnpgoGestioneRichiesteRec>) getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoGestioneRichiesteRec").add(create(instance)).list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 25-set-2008 12.41.10 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiGui" table="GNPGO_INFO_UTENTI_GUI">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQ_INFO_UTENTI</param>
</generator>
</id>
<property name="username" type="string">
<column name="USERNAME" length="16" not-null="true" />
</property>
<property name="profilo" type="string">
<column name="PROFILO" length="2" not-null="true" />
</property>
<property name="ipAddress" type="string">
<column name="IP_ADDRESS" length="15" />
</property>
<property name="gnpgoServer" type="string">
<column name="GNPGO_SERVER" length="14" not-null="true" />
</property>
<property name="dataUltimoAccesso" type="date">
<column name="DATA_ULTIMO_ACCESSO" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,86 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 25-set-2008 12.41.12 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoInfoUtentiGui generated by hbm2java
*/
public class GnpgoInfoUtentiGui implements java.io.Serializable {
private Long idProg;
private String username;
private String profilo;
private String ipAddress;
private String gnpgoServer;
private Date dataUltimoAccesso;
public GnpgoInfoUtentiGui() {
}
public GnpgoInfoUtentiGui(String username, String profilo, String gnpgoServer) {
this.username = username;
this.profilo = profilo;
this.gnpgoServer = gnpgoServer;
}
public GnpgoInfoUtentiGui(String username, String profilo, String ipAddress, String gnpgoServer, Date dataUltimoAccesso) {
this.username = username;
this.profilo = profilo;
this.ipAddress = ipAddress;
this.gnpgoServer = gnpgoServer;
this.dataUltimoAccesso = dataUltimoAccesso;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getProfilo() {
return this.profilo;
}
public void setProfilo(String profilo) {
this.profilo = profilo;
}
public String getIpAddress() {
return this.ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public String getGnpgoServer() {
return this.gnpgoServer;
}
public void setGnpgoServer(String gnpgoServer) {
this.gnpgoServer = gnpgoServer;
}
public Date getDataUltimoAccesso() {
return this.dataUltimoAccesso;
}
public void setDataUltimoAccesso(Date dataUltimoAccesso) {
this.dataUltimoAccesso = dataUltimoAccesso;
}
}

View File

@@ -0,0 +1,193 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 30-set-2008 12.00.48 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoInfoUtentiGui.
* @see .GnpgoInfoUtentiGui
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoInfoUtentiGuiDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoInfoUtentiGuiDAO.class);
public static final String HIB_PROP_GNPGO_SERVER = "gnpgoServer";
public static final String HIB_PROP_USERNAME = "username";
public void save(GnpgoInfoUtentiGui transientInstance) {
log.debug("saving GnpgoInfoUtentiGui instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoInfoUtentiGui> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoInfoUtentiGui instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoInfoUtentiGui model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoInfoUtentiGui> findAll() {
log.debug("finding all GnpgoInfoUtentiGui ");
try {
String queryString = " from GnpgoInfoUtentiGui";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoInfoUtentiGui instance) {
log.debug("attaching dirty GnpgoInfoUtentiGui instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoInfoUtentiGui instance) {
log.debug("attaching clean GnpgoInfoUtentiGui instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoInfoUtentiGui persistentInstance) {
log.debug("deleting GnpgoInfoUtentiGui instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoInfoUtentiGui merge(GnpgoInfoUtentiGui detachedInstance) {
log.debug("merging GnpgoInfoUtentiGui instance");
try {
GnpgoInfoUtentiGui result = (GnpgoInfoUtentiGui) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoInfoUtentiGui> findByCriteria(List criterion) {
log.debug("finding GnpgoInfoUtentiGui instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiGui");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoInfoUtentiGui findById( java.lang.Long id) {
log.debug("getting GnpgoInfoUtentiGui instance with id: " + id);
try {
GnpgoInfoUtentiGui instance = (GnpgoInfoUtentiGui) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiGui", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoInfoUtentiGui> findByExample(GnpgoInfoUtentiGui instance) {
log.debug("finding GnpgoInfoUtentiGui instance by example");
try {
List<GnpgoInfoUtentiGui> results = (List<GnpgoInfoUtentiGui>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiGui")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,60 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 21-feb-2018 18.41.18 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiPcs" table="GNPGO_INFO_UTENTI_PCS">
<comment>PCS user access tracking</comment>
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQ_INFO_UTENTI_PCS</param>
</generator>
</id>
<property name="username" type="string">
<column name="USERNAME" length="1024" not-null="true">
<comment>PCS user access tracking - NOT null, from PCS</comment>
</column>
</property>
<property name="profiloUtente" type="string">
<column name="PROFILO_UTENTE" length="2" not-null="true">
<comment>PCS user access tracking - NOT null, from PCS</comment>
</column>
</property>
<property name="ipAddress" type="string">
<column name="IP_ADDRESS" length="1024">
<comment>PCS user access tracking - from GUI</comment>
</column>
</property>
<property name="gnpgoServer" type="string">
<column name="GNPGO_SERVER" length="1024" not-null="true">
<comment>PCS user access tracking - NOT null, from GUI</comment>
</column>
</property>
<property name="nomeUtente" type="string">
<column name="NOME_UTENTE" length="1024">
<comment>PCS user access tracking - from PCS</comment>
</column>
</property>
<property name="cognomeUtente" type="string">
<column name="COGNOME_UTENTE" length="1024">
<comment>PCS user access tracking - from PCS</comment>
</column>
</property>
<property name="funzioneUtente" type="string">
<column name="FUNZIONE_UTENTE" length="1024">
<comment>PCS user access tracking - from PCS</comment>
</column>
</property>
<property name="inizioAccesso" type="date">
<column name="INIZIO_ACCESSO" length="7">
<comment>PCS user access tracking - from GUI</comment>
</column>
</property>
<property name="fineAccesso" type="date">
<column name="FINE_ACCESSO" length="7">
<comment>PCS user access tracking - from GUI</comment>
</column>
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,122 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 21-feb-2018 18.41.18 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoInfoUtentiPcs generated by hbm2java
*/
public class GnpgoInfoUtentiPcs implements java.io.Serializable {
private Long idProg;
private String username;
private String profiloUtente;
private String ipAddress;
private String gnpgoServer;
private String nomeUtente;
private String cognomeUtente;
private String funzioneUtente;
private Date inizioAccesso;
private Date fineAccesso;
public GnpgoInfoUtentiPcs() {
}
public GnpgoInfoUtentiPcs(String username, String profiloUtente, String gnpgoServer) {
this.username = username;
this.profiloUtente = profiloUtente;
this.gnpgoServer = gnpgoServer;
}
public GnpgoInfoUtentiPcs(String username, String profiloUtente, String ipAddress, String gnpgoServer, String nomeUtente, String cognomeUtente, String funzioneUtente, Date inizioAccesso, Date fineAccesso) {
this.username = username;
this.profiloUtente = profiloUtente;
this.ipAddress = ipAddress;
this.gnpgoServer = gnpgoServer;
this.nomeUtente = nomeUtente;
this.cognomeUtente = cognomeUtente;
this.funzioneUtente = funzioneUtente;
this.inizioAccesso = inizioAccesso;
this.fineAccesso = fineAccesso;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getUsername() {
return this.username;
}
public void setUsername(String username) {
this.username = username;
}
public String getProfiloUtente() {
return this.profiloUtente;
}
public void setProfiloUtente(String profiloUtente) {
this.profiloUtente = profiloUtente;
}
public String getIpAddress() {
return this.ipAddress;
}
public void setIpAddress(String ipAddress) {
this.ipAddress = ipAddress;
}
public String getGnpgoServer() {
return this.gnpgoServer;
}
public void setGnpgoServer(String gnpgoServer) {
this.gnpgoServer = gnpgoServer;
}
public String getNomeUtente() {
return this.nomeUtente;
}
public void setNomeUtente(String nomeUtente) {
this.nomeUtente = nomeUtente;
}
public String getCognomeUtente() {
return this.cognomeUtente;
}
public void setCognomeUtente(String cognomeUtente) {
this.cognomeUtente = cognomeUtente;
}
public String getFunzioneUtente() {
return this.funzioneUtente;
}
public void setFunzioneUtente(String funzioneUtente) {
this.funzioneUtente = funzioneUtente;
}
public Date getInizioAccesso() {
return this.inizioAccesso;
}
public void setInizioAccesso(Date inizioAccesso) {
this.inizioAccesso = inizioAccesso;
}
public Date getFineAccesso() {
return this.fineAccesso;
}
public void setFineAccesso(Date fineAccesso) {
this.fineAccesso = fineAccesso;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 21-feb-2018 18.44.17 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoInfoUtentiPcs.
* @see .GnpgoInfoUtentiPcs
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoInfoUtentiPcsDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoInfoUtentiPcsDAO.class);
public void save(GnpgoInfoUtentiPcs transientInstance) {
log.debug("saving GnpgoInfoUtentiPcs instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoInfoUtentiPcs> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoInfoUtentiPcs instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoInfoUtentiPcs model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoInfoUtentiPcs> findAll() {
log.debug("finding all GnpgoInfoUtentiPcs ");
try {
String queryString = " from GnpgoInfoUtentiPcs";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoInfoUtentiPcs instance) {
log.debug("attaching dirty GnpgoInfoUtentiPcs instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoInfoUtentiPcs instance) {
log.debug("attaching clean GnpgoInfoUtentiPcs instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoInfoUtentiPcs persistentInstance) {
log.debug("deleting GnpgoInfoUtentiPcs instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoInfoUtentiPcs merge(GnpgoInfoUtentiPcs detachedInstance) {
log.debug("merging GnpgoInfoUtentiPcs instance");
try {
GnpgoInfoUtentiPcs result = (GnpgoInfoUtentiPcs) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoInfoUtentiPcs> findByCriteria(List criterion) {
log.debug("finding GnpgoInfoUtentiPcs instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiPcs");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoInfoUtentiPcs findById( java.lang.Long id) {
log.debug("getting GnpgoInfoUtentiPcs instance with id: " + id);
try {
GnpgoInfoUtentiPcs instance = (GnpgoInfoUtentiPcs) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiPcs", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoInfoUtentiPcs> findByExample(GnpgoInfoUtentiPcs instance) {
log.debug("finding GnpgoInfoUtentiPcs instance by example");
try {
List<GnpgoInfoUtentiPcs> results = (List<GnpgoInfoUtentiPcs>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoInfoUtentiPcs")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 16-ott-2008 16.15.19 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoLov" table="GNPGO_LOV">
<id name="lovId" type="java.lang.Long">
<column name="LOV_ID" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="lovName" type="string">
<column name="LOV_NAME" length="40" />
</property>
<property name="name" type="string">
<column name="NAME" length="40" />
</property>
<property name="descr" type="string">
<column name="DESCR" length="200" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,66 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 16-ott-2008 16.15.21 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoLov generated by hbm2java
*/
public class GnpgoLov implements java.io.Serializable {
private Long lovId;
private String lovName;
private String name;
private String descr;
public GnpgoLov() {
}
public GnpgoLov(Long lovId) {
this.lovId = lovId;
}
public GnpgoLov(Long lovId, String lovName, String name, String descr) {
this.lovId = lovId;
this.lovName = lovName;
this.name = name;
this.descr = descr;
}
public Long getLovId() {
return this.lovId;
}
public void setLovId(Long lovId) {
this.lovId = lovId;
}
public String getLovName() {
return this.lovName;
}
public void setLovName(String lovName) {
this.lovName = lovName;
}
public String getName() {
return this.name;
}
public void setName(String name) {
this.name = name;
}
public String getDescr() {
return this.descr;
}
public void setDescr(String descr) {
this.descr = descr;
}
}

View File

@@ -0,0 +1,193 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 16-ott-2008 16.15.07 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoLov.
* @see .GnpgoLov
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoLovDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoLovDAO.class);
public static final String HP_PROP_LOV_NAME = "lovName";
public void save(GnpgoLov transientInstance) {
log.debug("saving GnpgoLov instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoLov> findByProperty(String propertyName, Object value) {
System.out.println("GnpgoLovDAO findByProperty :"+propertyName+", "+value);
log.debug("finding GnpgoLov instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoLov model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoLov> findAll() {
log.debug("finding all GnpgoLov ");
try {
String queryString = " from GnpgoLov";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoLov instance) {
log.debug("attaching dirty GnpgoLov instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoLov instance) {
log.debug("attaching clean GnpgoLov instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoLov persistentInstance) {
log.debug("deleting GnpgoLov instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoLov merge(GnpgoLov detachedInstance) {
log.debug("merging GnpgoLov instance");
try {
GnpgoLov result = (GnpgoLov) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoLov> findByCriteria(List criterion) {
log.debug("finding GnpgoLov instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoLov");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoLov findById( java.lang.Long id) {
log.debug("getting GnpgoLov instance with id: " + id);
try {
GnpgoLov instance = (GnpgoLov) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoLov", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoLov> findByExample(GnpgoLov instance) {
log.debug("finding GnpgoLov instance by example");
try {
List<GnpgoLov> results = (List<GnpgoLov>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoLov")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 16-ott-2008 16.15.19 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngCodiciScarto" table="GNPGO_NNG_CODICI_SCARTO">
<id name="codiceRifiuto" type="string">
<column name="CODICE_RIFIUTO" length="2" />
</id>
<property name="descrizioneRifiuto" type="string">
<column name="DESCRIZIONE_RIFIUTO" length="150" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="150" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,41 @@
package it.valueteam.gnpgo.core.dao.db.hb;
public class GnpgoNngCodiciScarto implements java.io.Serializable {
private String codiceRifiuto;
private String descrizioneRifiuto;
private String processo;
public GnpgoNngCodiciScarto(String codiceRifiuto, String descrizioneRifiuto, String processo) {
this.codiceRifiuto = codiceRifiuto;
this.descrizioneRifiuto = descrizioneRifiuto;
this.processo = processo;
}
public String getCodiceRifiuto() {
return codiceRifiuto;
}
public String getDescrizioneRifiuto() {
return descrizioneRifiuto;
}
public GnpgoNngCodiciScarto() {
}
public void setCodiceRifiuto(String codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public String getProcesso() {
return processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
}

View File

@@ -0,0 +1,195 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 16-ott-2008 16.15.07 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.LockMode;
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import java.util.Iterator;
import java.util.List;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoNngCodiciScarto.
*
* @author C.A.
* @see .GnpgoNngCodiciScarto
*/
public class GnpgoNngCodiciScartoDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoNngCodiciScartoDAO.class);
public static final String HP_PROP_LOV_NAME = "lovName";
public void save(GnpgoNngCodiciScarto transientInstance) {
log.debug("saving GnpgoNngCodiciScarto instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoNngCodiciScarto> findByProperty(String propertyName, Object value) {
System.out.println("GnpgoNngCodiciScartoDAO findByProperty :"+propertyName+", "+value);
log.debug("finding GnpgoNngCodiciScarto instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoNngCodiciScarto model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoNngCodiciScarto> findAll() {
log.debug("finding all GnpgoNngCodiciScarto ");
try {
String queryString = " from GnpgoNngCodiciScarto";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoNngCodiciScarto instance) {
log.debug("attaching dirty GnpgoNngCodiciScarto instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoNngCodiciScarto instance) {
log.debug("attaching clean GnpgoNngCodiciScarto instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoNngCodiciScarto persistentInstance) {
log.debug("deleting GnpgoNngCodiciScarto instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoNngCodiciScarto merge(GnpgoNngCodiciScarto detachedInstance) {
log.debug("merging GnpgoNngCodiciScarto instance");
try {
GnpgoNngCodiciScarto result = (GnpgoNngCodiciScarto) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoNngCodiciScarto> findByCriteria(List criterion) {
log.debug("finding GnpgoNngCodiciScarto instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngCodiciScarto");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoNngCodiciScarto findById( Long id) {
log.debug("getting GnpgoNngCodiciScarto instance with id: " + id);
try {
GnpgoNngCodiciScarto instance = (GnpgoNngCodiciScarto) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngCodiciScarto", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoNngCodiciScarto> findByExample(GnpgoNngCodiciScarto instance) {
log.debug("finding GnpgoNngCodiciScarto instance by example");
try {
List<GnpgoNngCodiciScarto> results = (List<GnpgoNngCodiciScarto>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngCodiciScarto")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,80 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngDonating" table="GNPGO_NNG_DONATING">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQ_RICHIESTE_NNG</param>
</generator>
</id>
<property name="codOpRecipient" type="string">
<column name="COD_OP_RECIPIENT" length="3" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="daInviare" type="java.lang.Long">
<column name="DA_INVIARE" precision="1" scale="0" />
</property>
<property name="idRichiestaDbcfx" type="java.lang.Long">
<column name="ID_RICHIESTA_DBCFX" />
</property>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" />
</property>
<property name="codFiscalePIva" type="string">
<column name="CODICE_FISCALE_PIVA" length="16" />
</property>
<property name="tipoComunicazione" type="string">
<column name="TIPO_COMUNICAZIONE" length="2"/>
</property>
<property name="tipoServizio" type="string">
<column name="TIPO_SERVIZIO" length="2"/>
</property>
<property name="NNG" type="string">
<column name="NNG" length="12" />
</property>
<property name="codOperatore" type="string">
<column name="OP_ID" length="3" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceProgetto" type="string">
<column name="CODICE_PROGETTO" length="18" />
</property>
<property name="email" type="string">
<column name="EMAIL" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="nomeFileFenp" type="string">
<column name="NOME_FILE_FENP" length="50"/>
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="esito" type="string">
<column name="ESITO" length="2" />
</property>
<property name="codiceRifiuto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneRifiuto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="dataInvioRichiesta" type="date">
<column name="DATA_INVIO_RICHIESTA" length="7" />
</property>
<property name="dataKO" type="date">
<column name="DATA_KO" length="7" />
</property>
<property name="dataEspletamento" type="date">
<column name="DATA_ESPLETAMENTO_ORDINE" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,216 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngDonating implements java.io.Serializable {
Long rowId;
String codOpRecipient;
Date dataOrdine;
Long daInviare;
String idEsigenza;
String tipoComunicazione;
String tipoServizio;
String NNG;
String codOperatore;
String codFiscalePIva;
Date dac;
String codiceProgetto;
String email;
String codiceOrdine;
String nomeFileFenp;
String stato;
String esito;
Long codiceRifiuto;
String descrizioneRifiuto;
Date dataInvioRichiesta;
Date dataKO;
Date dataEspletamento;
Long idRichiestaDbcfx;
public Long getIdRichiestaDbcfx() {
return idRichiestaDbcfx;
}
public void setIdRichiestaDbcfx(Long idRichiestaDbcfx) {
this.idRichiestaDbcfx = idRichiestaDbcfx;
}
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getCodOpRecipient() {
return codOpRecipient;
}
public void setCodOpRecipient(String codOpRecipient) {
this.codOpRecipient = codOpRecipient;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Long getDaInviare() {
return daInviare;
}
public void setDaInviare(Long daInviare) {
this.daInviare = daInviare;
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getTipoComunicazione() {
return tipoComunicazione;
}
public void setTipoComunicazione(String tipoComunicazione) {
this.tipoComunicazione = tipoComunicazione;
}
public String getTipoServizio() {
return tipoServizio;
}
public void setTipoServizio(String tipoServizio) {
this.tipoServizio = tipoServizio;
}
public String getNNG() {
return NNG;
}
public void setNNG(String nng) {
this.NNG = nng;
}
public String getCodOperatore() {
return codOperatore;
}
public void setCodOperatore(String codOperatore) {
this.codOperatore = codOperatore;
}
public String getCodFiscalePIva() {
return codFiscalePIva;
}
public void setCodFiscalePIva(String codFiscalePIva) {
this.codFiscalePIva = codFiscalePIva;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCodiceProgetto() {
return codiceProgetto;
}
public void setCodiceProgetto(String codiceProgetto) {
this.codiceProgetto = codiceProgetto;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public String getNomeFileFenp() {
return nomeFileFenp;
}
public void setNomeFileFenp(String nomeFileFenp) {
this.nomeFileFenp = nomeFileFenp;
}
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public String getEsito() {
return esito;
}
public void setEsito(String esito) {
this.esito = esito;
}
public Long getCodiceRifiuto() {
return codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getDescrizioneRifiuto() {
return descrizioneRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public Date getDataInvioRichiesta() {
return dataInvioRichiesta;
}
public void setDataInvioRichiesta(Date dataInvioRichiesta) {
this.dataInvioRichiesta = dataInvioRichiesta;
}
public Date getDataKO() {
return dataKO;
}
public void setDataKO(Date dataKO) {
this.dataKO = dataKO;
}
public Date getDataEspletamento() {
return dataEspletamento;
}
public void setDataEspletamento(Date dataEspletamento) {
this.dataEspletamento = dataEspletamento;
}
}

View File

@@ -0,0 +1,101 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngDonatingDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoNngDonating.class);
public static final String HP_NNG = "NNG";
public static final String HP_CF_PIVA_CLIENTE = "codFiscalePIva";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "codiceRifiuto";
public static final String HP_TIPO_COMUNICAZIONE = "tipoComunicazione";
public GnpgoNngDonating findById(Long id) {
log.debug("getting GnpgoNngDonating instance with id: " + id);
try {
GnpgoNngDonating instance = (GnpgoNngDonating) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngDonating", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public void save(GnpgoNngDonating transientInstance) {
log.debug("saving GnpgoNngDonating instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public GnpgoNngDonating merge(GnpgoNngDonating detachedInstance) {
log.debug("merging GnpgoNngDonating instance");
try {
GnpgoNngDonating result = (GnpgoNngDonating) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoNngDonating> findAll() {
log.debug("finding all GnpgoNngDonating ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngDonating");
crit.addOrder(Order.asc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.asc(HP_NNG));
crit.addOrder(Order.asc(HP_TIPO_COMUNICAZIONE));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngDonating> findByCriteria(List<Criterion> criterion) {
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngDonating");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
return crit.list();
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,80 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngRecipient" table="GNPGO_NNG_RECIPIENT">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" precision="22" scale="0" />
<generator class="sequence">
<param name="sequence">SEQ_RICHIESTE_NNG</param>
</generator>
</id>
<property name="codOpRecipient" type="string">
<column name="COD_OP_RECIPIENT" length="3" />
</property>
<property name="codOpDonating" type="string">
<column name="COD_OP_DONATING" length="3" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="codFiscalePIva" type="string">
<column name="CODICE_FISCALE_PIVA" length="16" />
</property>
<property name="daInviare" type="java.lang.Long">
<column name="DA_INVIARE" precision="1" scale="0" />
</property>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" />
</property>
<property name="tipoComunicazione" type="string">
<column name="TIPO_COMUNICAZIONE" length="2"/>
</property>
<property name="tipoServizio" type="string">
<column name="TIPO_SERVIZIO" length="2"/>
</property>
<property name="NNG" type="string">
<column name="NNG" length="12" />
</property>
<property name="codOperatore" type="string">
<column name="OP_ID" length="3" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceProgetto" type="string">
<column name="CODICE_PROGETTO" length="18" />
</property>
<property name="email" type="string">
<column name="EMAIL" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="nomeFileFenp" type="string">
<column name="NOME_FILE_FENP" length="50"/>
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="esito" type="string">
<column name="ESITO" length="2" />
</property>
<property name="codiceRifiuto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneRifiuto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="dataInvioRichiesta" type="date">
<column name="DATA_INVIO_RICHIESTA" length="7" />
</property>
<property name="dataKO" type="date">
<column name="DATA_KO" length="7" />
</property>
<property name="dataEspletamento" type="date">
<column name="DATA_ESPLETAMENTO_ORDINE" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,217 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.hibernate.criterion.Criterion;
import java.util.Date;
import java.util.List;
public class GnpgoNngRecipient implements java.io.Serializable {
Long rowId;
String codOpRecipient;
Date dataOrdine;
Long daInviare;
String idEsigenza;
String tipoComunicazione;
String tipoServizio;
String NNG;
String codOperatore;
String codFiscalePIva;
Date dac;
String codiceProgetto;
String email;
String codiceOrdine;
String nomeFileFenp;
String stato;
String esito;
Long codiceRifiuto;
String descrizioneRifiuto;
Date dataInvioRichiesta;
Date dataKO;
Date dataEspletamento;
String codOpDonating;
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getCodOpRecipient() {
return codOpRecipient;
}
public void setCodOpRecipient(String codOpRecipient) {
this.codOpRecipient = codOpRecipient;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Long getDaInviare() {
return daInviare;
}
public void setDaInviare(Long daInviare) {
this.daInviare = daInviare;
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getTipoComunicazione() {
return tipoComunicazione;
}
public void setTipoComunicazione(String tipoComunicazione) {
this.tipoComunicazione = tipoComunicazione;
}
public String getTipoServizio() {
return tipoServizio;
}
public void setTipoServizio(String tipoServizio) {
this.tipoServizio = tipoServizio;
}
public String getNNG() {
return NNG;
}
public void setNNG(String nng) {
this.NNG = nng;
}
public String getCodOperatore() {
return codOperatore;
}
public void setCodOperatore(String codOperatore) {
this.codOperatore = codOperatore;
}
public String getCodFiscalePIva() {
return codFiscalePIva;
}
public void setCodFiscalePIva(String codFiscalePIva) {
this.codFiscalePIva = codFiscalePIva;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getCodiceProgetto() {
return codiceProgetto;
}
public void setCodiceProgetto(String codiceProgetto) {
this.codiceProgetto = codiceProgetto;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public String getNomeFileFenp() {
return nomeFileFenp;
}
public void setNomeFileFenp(String nomeFileFenp) {
this.nomeFileFenp = nomeFileFenp;
}
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public String getEsito() {
return esito;
}
public void setEsito(String esito) {
this.esito = esito;
}
public Long getCodiceRifiuto() {
return codiceRifiuto;
}
public void setCodiceRifiuto(Long codiceRifiuto) {
this.codiceRifiuto = codiceRifiuto;
}
public String getDescrizioneRifiuto() {
return descrizioneRifiuto;
}
public void setDescrizioneRifiuto(String descrizioneRifiuto) {
this.descrizioneRifiuto = descrizioneRifiuto;
}
public Date getDataInvioRichiesta() {
return dataInvioRichiesta;
}
public void setDataInvioRichiesta(Date dataInvioRichiesta) {
this.dataInvioRichiesta = dataInvioRichiesta;
}
public Date getDataKO() {
return dataKO;
}
public void setDataKO(Date dataKO) {
this.dataKO = dataKO;
}
public Date getDataEspletamento() {
return dataEspletamento;
}
public void setDataEspletamento(Date dataEspletamento) {
this.dataEspletamento = dataEspletamento;
}
public String getCodOpDonating() {
return codOpDonating;
}
public void setCodOpDonating(String codOpDonating) {
this.codOpDonating = codOpDonating;
}
}

View File

@@ -0,0 +1,103 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngRecipientDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoNngRecipient.class);
public static final String HP_NNG = "NNG";
public static final String HP_CF_PIVA_CLIENTE = "codFiscalePIva";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "codiceRifiuto";
public static final String HP_TIPO_COMUNICAZIONE = "tipoComunicazione";
public static final String HP_ID_ESIGENZA = "idEsigenza";
public GnpgoNngRecipient findById(Long id) {
log.debug("getting GnpgoNngRecipient instance with id: " + id);
try {
GnpgoNngRecipient instance = (GnpgoNngRecipient) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngRecipient", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public void save(GnpgoNngRecipient transientInstance) {
log.debug("saving GnpgoNngRecipient instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public GnpgoNngRecipient merge(GnpgoNngRecipient detachedInstance) {
log.debug("merging GnpgoGestioneNotificheDonating instance");
try {
GnpgoNngRecipient result = (GnpgoNngRecipient) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoNngRecipient> findAll() {
log.debug("finding all GnpgoNngRecipient ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngRecipient");
crit.addOrder(Order.asc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.asc(HP_NNG));
crit.addOrder(Order.asc(HP_TIPO_COMUNICAZIONE));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngRecipient> findByCriteria(List<Criterion> criterion) {
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngRecipient");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
return crit.list();
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,39 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataDonating" table="GNPGO_NNG_TESTATA_DONATING">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" />
</id>
<property name="nng" type="string">
<column name="NNG" length="12" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="codiceFiscalePIVA" type="string">
<column name="CODICE_FISCALE_PIVA" length="16" />
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="tipoScarto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneScarto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="codOpRecipient" type="string">
<column name="COD_OP_RECIPIENT" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,114 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngTestataDonating {
Long rowId;
String nng;
String codiceFiscalePIVA;
Date dataOrdine;
String codOpRecipient;
Long tipoScarto;
String stato;
String descrizioneScarto;
String codiceOrdine;
String selectedOrdine;
Date dac;
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getNng() {
return nng;
}
public void setNng(String nng) {
this.nng = nng;
}
public String getCodiceFiscalePIVA() {
return codiceFiscalePIVA;
}
public void setCodiceFiscalePIVA(String codiceFiscalePIVA) {
this.codiceFiscalePIVA = codiceFiscalePIVA;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public String getCodOpRecipient() {
return codOpRecipient;
}
public void setCodOpRecipient(String codOpRecipient) {
this.codOpRecipient = codOpRecipient;
}
public Long getTipoScarto() {
return tipoScarto;
}
public void setTipoScarto(Long tipoScarto) {
this.tipoScarto = tipoScarto;
}
public String getDescrizioneScarto() {
return descrizioneScarto;
}
public void setDescrizioneScarto(String descrizioneScarto) {
this.descrizioneScarto = descrizioneScarto;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public String getSelectedOrdine() {
return selectedOrdine;
}
public void setSelectedOrdine(String selectedOrdine) {
this.selectedOrdine = selectedOrdine;
}
public void accettaRichiesta() {
System.out.println("entro qua dentro - impossibile");
}
public void rifiutaRichiesta() {
System.out.println("entro qua dentro - impossibile");
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
}

View File

@@ -0,0 +1,62 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngTestataDonatingDAO extends BaseHibernateDAO {
public static final String HP_NNG = "nng";
public static final String HP_CF_PIVA_CLIENTE = "codiceFiscalePIVA";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "tipoScarto";
public static final String HIB_PROP_TIPO_COM = "tipoComunicazione";
protected static final Log log = LogFactory.getLog(GnpgoNngTestataDonatingDAO.class);
public List<GnpgoNngTestataDonating> findAll() {
log.debug("finding all GnpgoNngTestataDonating ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataDonating");
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.desc(HP_NNG));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngTestataDonating> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoNngTestataDonating instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataDonating");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.desc(HP_NNG));
crit.addOrder(Order.desc(HP_TIPO_SCARTO));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataOpTerzo" table="GNPGO_NNG_TESTATA_OP_TERZO">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" />
</id>
<property name="nng" type="string">
<column name="NNG" length="12" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="codOpRecipient" type="string">
<column name="COD_OP_RECIPIENT" length="3" />
</property>
<property name="codOperatore" type="string">
<column name="OP_ID" length="3" />
</property>
<property name="dataEspletamento" type="date">
<column name="DAC" length="7" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,89 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngTestataOpTerzo {
Long rowId;
String nng;
String codOperatore;
Date dataOrdine;
String codOpRecipient;
String codiceOrdine;
Date dataEspletamento;
Date rDac;
String chiusura;
public String getCodOperatore() {
return codOperatore;
}
public void setCodOperatore(String codOperatore) {
this.codOperatore = codOperatore;
}
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getNng() {
return nng;
}
public void setNng(String nng) {
this.nng = nng;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public String getCodOpRecipient() {
return codOpRecipient;
}
public void setCodOpRecipient(String codOpRecipient) {
this.codOpRecipient = codOpRecipient;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public Date getDataEspletamento() {
return dataEspletamento;
}
public void setDataEspletamento(Date dataEspletamento) {
this.dataEspletamento = dataEspletamento;
}
public Date getrDac() {
return rDac;
}
public void setrDac(Date rDac) {
this.rDac = rDac;
}
public String getChiusura() {
return chiusura;
}
public void setChiusura(String chiusura) {
this.chiusura = chiusura;
}
}

View File

@@ -0,0 +1,57 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngTestataOpTerzoDAO extends BaseHibernateDAO {
public static final String HP_NNG = "nng";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_CODICE_ORDINE = "codiceOrdine";
protected static final Log log = LogFactory.getLog(GnpgoNngTestataOpTerzoDAO.class);
public List<GnpgoNngTestataOpTerzo> findAll() {
log.debug("finding all GnpgoNngTestataOpTerzo ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataOpTerzo");
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.asc(HP_CODICE_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngTestataOpTerzo> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoNngTestataOpTerzo instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataOpTerzo");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.asc(HP_CODICE_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataRecipient" table="GNPGO_NNG_TESTATA_RECIPIENT">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" />
</id>
<property name="nng" type="string">
<column name="NNG" length="12" />
</property>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="18" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="codiceFiscalePIVA" type="string">
<column name="CODICE_FISCALE_PIVA" length="16" />
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="tipoScarto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneScarto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
<property name="codOperatore" type="string">
<column name="OP_DONATING" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,106 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngTestataRecipient {
Long rowId;
String nng;
String codiceFiscalePIVA;
Date dataOrdine;
Long tipoScarto;
String descrizioneScarto;
String stato;
String idEsigenza;
String codOperatore;
String codiceOrdine;
Date dac;
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getNng() {
return nng;
}
public void setNng(String nng) {
this.nng = nng;
}
public String getCodiceFiscalePIVA() {
return codiceFiscalePIVA;
}
public void setCodiceFiscalePIVA(String codiceFiscalePIVA) {
this.codiceFiscalePIVA = codiceFiscalePIVA;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Long getTipoScarto() {
return tipoScarto;
}
public void setTipoScarto(Long tipoScarto) {
this.tipoScarto = tipoScarto;
}
public String getDescrizioneScarto() {
return descrizioneScarto;
}
public void setDescrizioneScarto(String descrizioneScarto) {
this.descrizioneScarto = descrizioneScarto;
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getCodOperatore() {
return codOperatore;
}
public void setCodOperatore(String codOperatore) {
this.codOperatore = codOperatore;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public Date getDac() {
return dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
}

View File

@@ -0,0 +1,59 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngTestataRecipientDAO extends BaseHibernateDAO {
public static final String HP_NNG = "nng";
public static final String HP_CF_PIVA_CLIENTE = "codiceFiscalePIVA";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "tipoScarto";
protected static final Log log = LogFactory.getLog(GnpgoNngTestataRecipientDAO.class);
public List<GnpgoNngTestataRecipient> findAll() {
log.debug("finding all GnpgoNngTestataRecipient ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataRecipient");
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.desc(HP_NNG));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngTestataRecipient> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoNngTestataRecipient instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataRecipient");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_CF_PIVA_CLIENTE));
crit.addOrder(Order.desc(HP_NNG));
crit.addOrder(Order.desc(HP_TIPO_SCARTO));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturned" table="GNPGO_NNG_TESTATA_RETURNED">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" />
</id>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="nng" type="string">
<column name="NNG" length="12" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="codOpReturning" type="string">
<column name="COD_OP_RETURNING" length="3" />
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="tipoScarto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneScarto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,79 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngTestataReturned {
Long rowId;
String codiceOrdine;
String nng;
Date dataOrdine;
String codOpReturning;
Long tipoScarto;
String stato;
String descrizioneScarto;
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getNng() {
return nng;
}
public void setNng(String nng) {
this.nng = nng;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Long getTipoScarto() {
return tipoScarto;
}
public void setTipoScarto(Long tipoScarto) {
this.tipoScarto = tipoScarto;
}
public String getDescrizioneScarto() {
return descrizioneScarto;
}
public void setDescrizioneScarto(String descrizioneScarto) {
this.descrizioneScarto = descrizioneScarto;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
public String getCodOpReturning() {
return codOpReturning;
}
public void setCodOpReturning(String codOpReturning) {
this.codOpReturning = codOpReturning;
}
}

View File

@@ -0,0 +1,55 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngTestataReturnedDAO extends BaseHibernateDAO {
public static final String HP_NNG = "nng";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "tipoScarto";
public static final String HIB_PROP_TIPO_COM = "tipoComunicazione";
protected static final Log log = LogFactory.getLog(GnpgoNngTestataReturnedDAO.class);
public List<GnpgoNngTestataReturned> findAll() {
log.debug("finding all GnpgoNngTestataReturned ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturned");
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngTestataReturned> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoNngTestataReturned instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturned");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 20-mag-2011 14.16.50 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturning" table="GNPGO_NNG_TESTATA_RETURNING">
<id name="rowId" type="java.lang.Long">
<column name="ROW_ID" />
</id>
<property name="nng" type="string">
<column name="NNG" length="12" />
</property>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="18" />
</property>
<property name="codiceOrdine" type="string">
<column name="CODICE_ORDINE" length="18" />
</property>
<property name="dataOrdine" type="date">
<column name="DATA_ORDINE" length="7" />
</property>
<property name="stato" type="string">
<column name="STATO" length="2" />
</property>
<property name="tipoScarto" type="java.lang.Long">
<column name="CODICE_RIFIUTO" precision="2" scale="0" />
</property>
<property name="descrizioneScarto" type="string">
<column name="DESCRIZIONE_RIFIUTO" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,79 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
public class GnpgoNngTestataReturning {
Long rowId;
String nng;
Date dataOrdine;
Long tipoScarto;
String stato;
String descrizioneScarto;
String idEsigenza;
String codiceOrdine;
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
this.rowId = rowId;
}
public String getNng() {
return nng;
}
public void setNng(String nng) {
this.nng = nng;
}
public Date getDataOrdine() {
return dataOrdine;
}
public void setDataOrdine(Date dataOrdine) {
this.dataOrdine = dataOrdine;
}
public Long getTipoScarto() {
return tipoScarto;
}
public void setTipoScarto(Long tipoScarto) {
this.tipoScarto = tipoScarto;
}
public String getDescrizioneScarto() {
return descrizioneScarto;
}
public void setDescrizioneScarto(String descrizioneScarto) {
this.descrizioneScarto = descrizioneScarto;
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getStato() {
return stato;
}
public void setStato(String stato) {
this.stato = stato;
}
public String getCodiceOrdine() {
return codiceOrdine;
}
public void setCodiceOrdine(String codiceOrdine) {
this.codiceOrdine = codiceOrdine;
}
}

View File

@@ -0,0 +1,57 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.Criteria;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Order;
import java.util.Iterator;
import java.util.List;
public class GnpgoNngTestataReturningDAO extends BaseHibernateDAO {
public static final String HP_NNG = "nng";
public static final String HP_DATA_ORDINE = "dataOrdine";
public static final String HP_TIPO_SCARTO = "tipoScarto";
protected static final Log log = LogFactory.getLog(GnpgoNngTestataReturningDAO.class);
public List<GnpgoNngTestataReturning> findAll() {
log.debug("finding all GnpgoNngTestataReturning ");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturning");
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
return crit.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoNngTestataReturning> findByCriteria(List<Criterion> criterion) {
log.debug("finding GnpgoNngTestataReturning instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoNngTestataReturning");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
crit.addOrder(Order.desc(HP_DATA_ORDINE));
crit.addOrder(Order.desc(HP_NNG));
List results = crit.list();
log.debug("find by criteria successful, result size: " + results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,18 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 27-nov-2008 15.53.17 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita" table="GNPGO_PROFILI_FUNZIONALITA">
<id name="id" type="java.lang.Long">
<column name="ID" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<many-to-one name="gnpgoProfiliGui" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliGui" fetch="join">
<column name="PROFILO" length="2" not-null="true" />
</many-to-one>
<many-to-one name="gnpgoFunzionalitaGui" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoFunzionalitaGui" fetch="join">
<column name="FUNZIONALITA" precision="22" scale="0" not-null="true" />
</many-to-one>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,53 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 15.53.18 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoProfiliFunzionalita generated by hbm2java
*/
public class GnpgoProfiliFunzionalita implements java.io.Serializable {
private Long id;
private GnpgoProfiliGui gnpgoProfiliGui;
private GnpgoFunzionalitaGui gnpgoFunzionalitaGui;
public GnpgoProfiliFunzionalita() {
}
public GnpgoProfiliFunzionalita(Long id, GnpgoProfiliGui gnpgoProfiliGui, GnpgoFunzionalitaGui gnpgoFunzionalitaGui) {
this.id = id;
this.gnpgoProfiliGui = gnpgoProfiliGui;
this.gnpgoFunzionalitaGui = gnpgoFunzionalitaGui;
}
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public GnpgoProfiliGui getGnpgoProfiliGui() {
return this.gnpgoProfiliGui;
}
public void setGnpgoProfiliGui(GnpgoProfiliGui gnpgoProfiliGui) {
this.gnpgoProfiliGui = gnpgoProfiliGui;
}
public GnpgoFunzionalitaGui getGnpgoFunzionalitaGui() {
return this.gnpgoFunzionalitaGui;
}
public void setGnpgoFunzionalitaGui(GnpgoFunzionalitaGui gnpgoFunzionalitaGui) {
this.gnpgoFunzionalitaGui = gnpgoFunzionalitaGui;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 14.44.48 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoProfiliFunzionalita.
* @see .GnpgoProfiliFunzionalita
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoProfiliFunzionalitaDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoProfiliFunzionalitaDAO.class);
public void save(GnpgoProfiliFunzionalita transientInstance) {
log.debug("saving GnpgoProfiliFunzionalita instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoProfiliFunzionalita> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoProfiliFunzionalita instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoProfiliFunzionalita model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoProfiliFunzionalita> findAll() {
log.debug("finding all GnpgoProfiliFunzionalita ");
try {
String queryString = " from GnpgoProfiliFunzionalita";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoProfiliFunzionalita instance) {
log.debug("attaching dirty GnpgoProfiliFunzionalita instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoProfiliFunzionalita instance) {
log.debug("attaching clean GnpgoProfiliFunzionalita instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoProfiliFunzionalita persistentInstance) {
log.debug("deleting GnpgoProfiliFunzionalita instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoProfiliFunzionalita merge(GnpgoProfiliFunzionalita detachedInstance) {
log.debug("merging GnpgoProfiliFunzionalita instance");
try {
GnpgoProfiliFunzionalita result = (GnpgoProfiliFunzionalita) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoProfiliFunzionalita> findByCriteria(List criterion) {
log.debug("finding GnpgoProfiliFunzionalita instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoProfiliFunzionalita findById( java.lang.Long id) {
log.debug("getting GnpgoProfiliFunzionalita instance with id: " + id);
try {
GnpgoProfiliFunzionalita instance = (GnpgoProfiliFunzionalita) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoProfiliFunzionalita> findByExample(GnpgoProfiliFunzionalita instance) {
log.debug("finding GnpgoProfiliFunzionalita instance by example");
try {
List<GnpgoProfiliFunzionalita> results = (List<GnpgoProfiliFunzionalita>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 27-nov-2008 15.53.17 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliGui" table="GNPGO_PROFILI_GUI">
<id name="codiceProfilo" type="string">
<column name="CODICE_PROFILO" length="2" />
<generator class="assigned"></generator>
</id>
<property name="descrizione" type="string">
<column name="DESCRIZIONE" length="50" />
</property>
<set name="gnpgoProfiliFunzionalitas" inverse="true" fetch="join">
<key>
<column name="PROFILO" length="2" not-null="true" />
</key>
<one-to-many class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliFunzionalita" />
</set>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,59 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 15.53.18 by Hibernate Tools 3.2.0.CR1
import java.util.HashSet;
import java.util.Set;
/**
* GnpgoProfiliGui generated by hbm2java
*/
public class GnpgoProfiliGui implements java.io.Serializable {
private String codiceProfilo;
private String descrizione;
private Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas = new HashSet<GnpgoProfiliFunzionalita>(0);
public GnpgoProfiliGui() {
}
public GnpgoProfiliGui(String codiceProfilo) {
this.codiceProfilo = codiceProfilo;
}
public GnpgoProfiliGui(String codiceProfilo, String descrizione, Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas) {
this.codiceProfilo = codiceProfilo;
this.descrizione = descrizione;
this.gnpgoProfiliFunzionalitas = gnpgoProfiliFunzionalitas;
}
public String getCodiceProfilo() {
return this.codiceProfilo;
}
public void setCodiceProfilo(String codiceProfilo) {
this.codiceProfilo = codiceProfilo;
}
public String getDescrizione() {
return this.descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public Set<GnpgoProfiliFunzionalita> getGnpgoProfiliFunzionalitas() {
return this.gnpgoProfiliFunzionalitas;
}
public void setGnpgoProfiliFunzionalitas(Set<GnpgoProfiliFunzionalita> gnpgoProfiliFunzionalitas) {
this.gnpgoProfiliFunzionalitas = gnpgoProfiliFunzionalitas;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 14.44.48 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoProfiliGui.
* @see .GnpgoProfiliGui
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoProfiliGuiDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoProfiliGuiDAO.class);
public void save(GnpgoProfiliGui transientInstance) {
log.debug("saving GnpgoProfiliGui instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoProfiliGui> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoProfiliGui instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoProfiliGui model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoProfiliGui> findAll() {
log.debug("finding all GnpgoProfiliGui ");
try {
String queryString = " from GnpgoProfiliGui";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoProfiliGui instance) {
log.debug("attaching dirty GnpgoProfiliGui instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoProfiliGui instance) {
log.debug("attaching clean GnpgoProfiliGui instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoProfiliGui persistentInstance) {
log.debug("deleting GnpgoProfiliGui instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoProfiliGui merge(GnpgoProfiliGui detachedInstance) {
log.debug("merging GnpgoProfiliGui instance");
try {
GnpgoProfiliGui result = (GnpgoProfiliGui) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoProfiliGui> findByCriteria(List criterion) {
log.debug("finding GnpgoProfiliGui instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliGui");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoProfiliGui findById( java.lang.String id) {
log.debug("getting GnpgoProfiliGui instance with id: " + id);
try {
GnpgoProfiliGui instance = (GnpgoProfiliGui) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliGui", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoProfiliGui> findByExample(GnpgoProfiliGui instance) {
log.debug("finding GnpgoProfiliGui instance by example");
try {
List<GnpgoProfiliGui> results = (List<GnpgoProfiliGui>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoProfiliGui")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-ott-2008 11.09.13 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportAccettateOlo" table="GNPGO_REPORT_ACCETTATE_OLO">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="dataRicezionePic" type="date">
<column name="DATA_RICEZIONE_PIC" length="7" not-null="true" />
</property>
<property name="dataInvioOlo" type="date">
<column name="DATA_INVIO_OLO" length="7" not-null="true" />
</property>
<property name="codSessione" type="string">
<column name="COD_SESSIONE" length="50" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,159 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.09.17 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportAccettateOlo generated by hbm2java
*/
public class GnpgoReportAccettateOlo implements java.io.Serializable {
private Long idProg;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private Date dataRicezionePic;
private Date dataInvioOlo;
private String codSessione;
private String canaleVendita;
private String marcaggio;
private String processo;
private Date dataInserimento;
private String cowOrigine;
public GnpgoReportAccettateOlo() {
}
public GnpgoReportAccettateOlo(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezionePic, Date dataInvioOlo, String codSessione, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezionePic = dataRicezionePic;
this.dataInvioOlo = dataInvioOlo;
this.codSessione = codSessione;
this.dataInserimento = dataInserimento;
this.cowOrigine=cowOrigine;
}
public GnpgoReportAccettateOlo(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezionePic, Date dataInvioOlo, String codSessione, String canaleVendita, String marcaggio, String processo, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezionePic = dataRicezionePic;
this.dataInvioOlo = dataInvioOlo;
this.codSessione = codSessione;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.cowOrigine=cowOrigine;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public Date getDataRicezionePic() {
return this.dataRicezionePic;
}
public void setDataRicezionePic(Date dataRicezionePic) {
this.dataRicezionePic = dataRicezionePic;
}
public Date getDataInvioOlo() {
return this.dataInvioOlo;
}
public void setDataInvioOlo(Date dataInvioOlo) {
this.dataInvioOlo = dataInvioOlo;
}
public String getCodSessione() {
return this.codSessione;
}
public void setCodSessione(String codSessione) {
this.codSessione = codSessione;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
}

View File

@@ -0,0 +1,197 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportAccettateOlo.
* @see .GnpgoReportAccettateOlo
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportAccettateOloDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportAccettateOloDAO.class);
//public static final String HB_PROP_CODICE_OLO="codiceOlo";
public static final String HB_PROP_DATA_INVIO_OLO="dataInvioOlo";
public static final String HB_PROP_MARCAGGIO="marcaggio";
public static final String HB_PROP_CANALE_VENDITA="canaleVendita";
public static final String HB_PROP_DATA_RIC_PIC="dataRicezionePic";
public static final String HB_PROP_COW_ORIGINE="cowOrigine";
public void save(GnpgoReportAccettateOlo transientInstance) {
log.debug("saving GnpgoReportAccettateOlo instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportAccettateOlo> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportAccettateOlo instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportAccettateOlo model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportAccettateOlo> findAll() {
log.debug("finding all GnpgoReportAccettateOlo ");
try {
String queryString = " from GnpgoReportAccettateOlo";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportAccettateOlo instance) {
log.debug("attaching dirty GnpgoReportAccettateOlo instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportAccettateOlo instance) {
log.debug("attaching clean GnpgoReportAccettateOlo instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportAccettateOlo persistentInstance) {
log.debug("deleting GnpgoReportAccettateOlo instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportAccettateOlo merge(GnpgoReportAccettateOlo detachedInstance) {
log.debug("merging GnpgoReportAccettateOlo instance");
try {
GnpgoReportAccettateOlo result = (GnpgoReportAccettateOlo) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportAccettateOlo> findByCriteria(List criterion) {
log.debug("finding GnpgoReportAccettateOlo instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportAccettateOlo");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportAccettateOlo findById( java.lang.Long id) {
log.debug("getting GnpgoReportAccettateOlo instance with id: " + id);
try {
GnpgoReportAccettateOlo instance = (GnpgoReportAccettateOlo) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportAccettateOlo", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportAccettateOlo> findByExample(GnpgoReportAccettateOlo instance) {
log.debug("finding GnpgoReportAccettateOlo instance by example");
try {
List<GnpgoReportAccettateOlo> results = (List<GnpgoReportAccettateOlo>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportAccettateOlo")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-ott-2008 11.09.13 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportFase3" table="GNPGO_REPORT_FASE_3">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="dataInvioPitagora" type="date">
<column name="DATA_INVIO_PITAGORA" length="7" not-null="true" />
</property>
<property name="codSessione" type="string">
<column name="COD_SESSIONE" length="50" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" not-null="true" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,159 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.09.17 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportFase3 generated by hbm2java
*/
public class GnpgoReportFase3 implements java.io.Serializable {
private Long idProg;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private Date dataInvioPitagora;
private String codSessione;
private String canaleVendita;
private String marcaggio;
private Date dac;
private String processo;
private Date dataInserimento;
private String cowOrigine;
public GnpgoReportFase3() {
}
public GnpgoReportFase3(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataInvioPitagora, Date dac, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataInvioPitagora = dataInvioPitagora;
this.dac = dac;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public GnpgoReportFase3(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataInvioPitagora, String codSessione, String canaleVendita, String marcaggio, Date dac, String processo, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataInvioPitagora = dataInvioPitagora;
this.codSessione = codSessione;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.dac = dac;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public Date getDataInvioPitagora() {
return this.dataInvioPitagora;
}
public void setDataInvioPitagora(Date dataInvioPitagora) {
this.dataInvioPitagora = dataInvioPitagora;
}
public String getCodSessione() {
return this.codSessione;
}
public void setCodSessione(String codSessione) {
this.codSessione = codSessione;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public Date getDac() {
return this.dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
}

View File

@@ -0,0 +1,196 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportFase3.
* @see .GnpgoReportFase3
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportFase3DAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportFase3DAO.class);
//public static final String HB_PROP_CODICE_OLO="codiceOlo";
public static final String HB_PROP_DATA_INVIO_PIT="dataInvioPitagora";
public static final String HB_PROP_MARCAGGIO="marcaggio";
public static final String HB_PROP_CANALE_VENDITA="canaleVendita";
public static final String HB_PROP_DAC="dac";
public static final String HB_PROP_COW_ORIGINE="cowOrigine";
public void save(GnpgoReportFase3 transientInstance) {
log.debug("saving GnpgoReportFase3 instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportFase3> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportFase3 instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportFase3 model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportFase3> findAll() {
log.debug("finding all GnpgoReportFase3 ");
try {
String queryString = " from GnpgoReportFase3";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportFase3 instance) {
log.debug("attaching dirty GnpgoReportFase3 instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportFase3 instance) {
log.debug("attaching clean GnpgoReportFase3 instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportFase3 persistentInstance) {
log.debug("deleting GnpgoReportFase3 instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportFase3 merge(GnpgoReportFase3 detachedInstance) {
log.debug("merging GnpgoReportFase3 instance");
try {
GnpgoReportFase3 result = (GnpgoReportFase3) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportFase3> findByCriteria(List criterion) {
log.debug("finding GnpgoReportFase3 instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportFase3");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportFase3 findById( java.lang.Long id) {
log.debug("getting GnpgoReportFase3 instance with id: " + id);
try {
GnpgoReportFase3 instance = (GnpgoReportFase3) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportFase3", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportFase3> findByExample(GnpgoReportFase3 instance) {
log.debug("finding GnpgoReportFase3 instance by example");
try {
List<GnpgoReportFase3> results = (List<GnpgoReportFase3>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportFase3")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,42 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-ott-2008 11.09.13 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportMutataVolonta" table="GNPGO_REPORT_MUTATA_VOLONTA">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="dataRicezioneNotifica" type="date">
<column name="DATA_RICEZIONE_NOTIFICA" length="7" not-null="true" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,139 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.09.17 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportMutataVolonta generated by hbm2java
*/
public class GnpgoReportMutataVolonta implements java.io.Serializable {
private Long idProg;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private Date dataRicezioneNotifica;
private String canaleVendita;
private String marcaggio;
private String processo;
private Date dataInserimento;
private String cowOrigine;
public GnpgoReportMutataVolonta() {
}
public GnpgoReportMutataVolonta(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezioneNotifica, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezioneNotifica = dataRicezioneNotifica;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public GnpgoReportMutataVolonta(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezioneNotifica, String canaleVendita, String marcaggio, String processo, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezioneNotifica = dataRicezioneNotifica;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public Date getDataRicezioneNotifica() {
return this.dataRicezioneNotifica;
}
public void setDataRicezioneNotifica(Date dataRicezioneNotifica) {
this.dataRicezioneNotifica = dataRicezioneNotifica;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
}

View File

@@ -0,0 +1,193 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportMutataVolonta.
* @see .GnpgoReportMutataVolonta
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportMutataVolontaDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportMutataVolontaDAO.class);
//public static final String HB_PROP_CODICE_OLO="codiceOlo";
public static final String HB_PROP_MARCAGGIO="marcaggio";
public static final String HB_PROP_CANALE_VENDITA="canaleVendita";
public static final String HB_PROP_COW_ORIGINE="cowOrigine";
public void save(GnpgoReportMutataVolonta transientInstance) {
log.debug("saving GnpgoReportMutataVolonta instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportMutataVolonta> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportMutataVolonta instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportMutataVolonta model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportMutataVolonta> findAll() {
log.debug("finding all GnpgoReportMutataVolonta ");
try {
String queryString = " from GnpgoReportMutataVolonta";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportMutataVolonta instance) {
log.debug("attaching dirty GnpgoReportMutataVolonta instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportMutataVolonta instance) {
log.debug("attaching clean GnpgoReportMutataVolonta instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportMutataVolonta persistentInstance) {
log.debug("deleting GnpgoReportMutataVolonta instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportMutataVolonta merge(GnpgoReportMutataVolonta detachedInstance) {
log.debug("merging GnpgoReportMutataVolonta instance");
try {
GnpgoReportMutataVolonta result = (GnpgoReportMutataVolonta) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportMutataVolonta> findByCriteria(List criterion) {
log.debug("finding GnpgoReportMutataVolonta instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportMutataVolonta");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportMutataVolonta findById( java.lang.Long id) {
log.debug("getting GnpgoReportMutataVolonta instance with id: " + id);
try {
GnpgoReportMutataVolonta instance = (GnpgoReportMutataVolonta) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportMutataVolonta", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportMutataVolonta> findByExample(GnpgoReportMutataVolonta instance) {
log.debug("finding GnpgoReportMutataVolonta instance by example");
try {
List<GnpgoReportMutataVolonta> results = (List<GnpgoReportMutataVolonta>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportMutataVolonta")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 18-nov-2008 11.38.28 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportNoAck" table="GNPGO_REPORT_NO_ACK" >
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<many-to-one name="gnpgoSollecitoReportNoAck" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoSollecitoReportNoAck" fetch="join" cascade="save-update">
<column name="ID_PROG_SOLLECITO" precision="22" scale="0" />
</many-to-one>
<property name="nomeFile" type="string">
<column name="NOME_FILE" length="50" not-null="true" />
</property>
<property name="dataInvio" type="date">
<column name="DATA_INVIO" length="7" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="10" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,98 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 18-nov-2008 11.38.29 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportNoAck generated by hbm2java
*/
public class GnpgoReportNoAck implements java.io.Serializable {
private Long idProg;
private GnpgoSollecitoReportNoAck gnpgoSollecitoReportNoAck;
private String nomeFile;
private Date dataInvio;
private String codiceOlo;
private String processo;
private Date dataInserimento;
public GnpgoReportNoAck() {
}
public GnpgoReportNoAck(Long idProg, String nomeFile, Date dataInvio, String codiceOlo, Date dataInserimento) {
this.idProg = idProg;
this.nomeFile = nomeFile;
this.dataInvio = dataInvio;
this.codiceOlo = codiceOlo;
this.dataInserimento = dataInserimento;
}
public GnpgoReportNoAck(Long idProg, GnpgoSollecitoReportNoAck gnpgoSollecitoReportNoAck, String nomeFile, Date dataInvio, String codiceOlo, String processo, Date dataInserimento) {
this.idProg = idProg;
this.gnpgoSollecitoReportNoAck = gnpgoSollecitoReportNoAck;
this.nomeFile = nomeFile;
this.dataInvio = dataInvio;
this.codiceOlo = codiceOlo;
this.processo = processo;
this.dataInserimento = dataInserimento;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public GnpgoSollecitoReportNoAck getGnpgoSollecitoReportNoAck() {
return this.gnpgoSollecitoReportNoAck;
}
public void setGnpgoSollecitoReportNoAck(GnpgoSollecitoReportNoAck gnpgoSollecitoReportNoAck) {
this.gnpgoSollecitoReportNoAck = gnpgoSollecitoReportNoAck;
}
public String getNomeFile() {
return this.nomeFile;
}
public void setNomeFile(String nomeFile) {
this.nomeFile = nomeFile;
}
public Date getDataInvio() {
return this.dataInvio;
}
public void setDataInvio(Date dataInvio) {
this.dataInvio = dataInvio;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
}

View File

@@ -0,0 +1,194 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportNoAck.
* @see .GnpgoReportNoAck
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportNoAckDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportNoAckDAO.class);
public static final String ID_HIB_PROP_NOME_FILE = "nomeFile";
private GnpgoSollecitoReportNoAck sollecito=null;
public void save(GnpgoReportNoAck transientInstance) {
log.debug("saving GnpgoReportNoAck instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportNoAck> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportNoAck instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportNoAck model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportNoAck> findAll() {
log.debug("finding all GnpgoReportNoAck ");
try {
String queryString = " from GnpgoReportNoAck";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportNoAck instance) {
log.debug("attaching dirty GnpgoReportNoAck instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportNoAck instance) {
log.debug("attaching clean GnpgoReportNoAck instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportNoAck persistentInstance) {
log.debug("deleting GnpgoReportNoAck instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportNoAck merge(GnpgoReportNoAck detachedInstance) {
log.debug("merging GnpgoReportNoAck instance");
try {
GnpgoReportNoAck result = (GnpgoReportNoAck) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportNoAck> findByCriteria(List criterion) {
log.debug("finding GnpgoReportNoAck instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportNoAck");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportNoAck findById( java.lang.Long id) {
log.debug("getting GnpgoReportNoAck instance with id: " + id);
try {
GnpgoReportNoAck instance = (GnpgoReportNoAck) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportNoAck", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportNoAck> findByExample(GnpgoReportNoAck instance) {
log.debug("finding GnpgoReportNoAck instance by example");
try {
List<GnpgoReportNoAck> results = (List<GnpgoReportNoAck>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportNoAck")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,48 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 5-apr-2012 15.30.34 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTipocom2" table="GNPGO_REPORT_TIPOCOM_2">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="dataInvioFenp" type="date">
<column name="DATA_INVIO_FENP" length="7" not-null="true" />
</property>
<property name="dataRicezioneRichiesta" type="date">
<column name="DATA_RICEZIONE_RICHIESTA" length="7" not-null="true" />
</property>
<property name="dac" type="date">
<column name="DAC" length="7" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="numberGiorniPermanenza" type="java.lang.Long">
<column name="NUMBER_GIORNI_PERMANENZA" precision="22" scale="0" not-null="true" />
</property>
<property name="flagGnr" type="string">
<column name="FLAG_GNR" length="1" not-null="true" />
</property>
<property name="nomeFileOlo" type="string">
<column name="NOME_FILE_OLO" length="50" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,157 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 5-apr-2012 15.30.35 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportTipocom2 generated by hbm2java
*/
public class GnpgoReportTipocom2 implements java.io.Serializable {
private Long idProg;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private Date dataInvioFenp;
private Date dataRicezioneRichiesta;
private Date dac;
private String processo;
private Date dataInserimento;
private Long numberGiorniPermanenza;
private String flagGnr;
private String nomeFileOlo;
public GnpgoReportTipocom2() {
}
public GnpgoReportTipocom2(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataInvioFenp, Date dataRicezioneRichiesta, Date dataInserimento, Long numberGiorniPermanenza, String flagGnr) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataInvioFenp = dataInvioFenp;
this.dataRicezioneRichiesta = dataRicezioneRichiesta;
this.dataInserimento = dataInserimento;
this.numberGiorniPermanenza = numberGiorniPermanenza;
this.flagGnr = flagGnr;
}
public GnpgoReportTipocom2(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataInvioFenp, Date dataRicezioneRichiesta, Date dac, String processo, Date dataInserimento, Long numberGiorniPermanenza, String flagGnr, String nomeFileOlo) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataInvioFenp = dataInvioFenp;
this.dataRicezioneRichiesta = dataRicezioneRichiesta;
this.dac = dac;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.numberGiorniPermanenza = numberGiorniPermanenza;
this.flagGnr = flagGnr;
this.nomeFileOlo = nomeFileOlo;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public Date getDataInvioFenp() {
return this.dataInvioFenp;
}
public void setDataInvioFenp(Date dataInvioFenp) {
this.dataInvioFenp = dataInvioFenp;
}
public Date getDataRicezioneRichiesta() {
return this.dataRicezioneRichiesta;
}
public void setDataRicezioneRichiesta(Date dataRicezioneRichiesta) {
this.dataRicezioneRichiesta = dataRicezioneRichiesta;
}
public Date getDac() {
return this.dac;
}
public void setDac(Date dac) {
this.dac = dac;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
public Long getNumberGiorniPermanenza() {
return this.numberGiorniPermanenza;
}
public void setNumberGiorniPermanenza(Long numberGiorniPermanenza) {
this.numberGiorniPermanenza = numberGiorniPermanenza;
}
public String getFlagGnr() {
return this.flagGnr;
}
public void setFlagGnr(String flagGnr) {
this.flagGnr = flagGnr;
}
public String getNomeFileOlo() {
return this.nomeFileOlo;
}
public void setNomeFileOlo(String nomeFileOlo) {
this.nomeFileOlo = nomeFileOlo;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 21-feb-2012 15.35.41 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportTipocom2.
* @see .GnpgoReportTipocom2
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportTipocom2DAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportTipocom2DAO.class);
public void save(GnpgoReportTipocom2 transientInstance) {
log.debug("saving GnpgoReportTipocom2 instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportTipocom2> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportTipocom2 instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportTipocom2 model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportTipocom2> findAll() {
log.debug("finding all GnpgoReportTipocom2 ");
try {
String queryString = " from GnpgoReportTipocom2";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportTipocom2 instance) {
log.debug("attaching dirty GnpgoReportTipocom2 instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportTipocom2 instance) {
log.debug("attaching clean GnpgoReportTipocom2 instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportTipocom2 persistentInstance) {
log.debug("deleting GnpgoReportTipocom2 instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportTipocom2 merge(GnpgoReportTipocom2 detachedInstance) {
log.debug("merging GnpgoReportTipocom2 instance");
try {
GnpgoReportTipocom2 result = (GnpgoReportTipocom2) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportTipocom2> findByCriteria(List criterion) {
log.debug("finding GnpgoReportTipocom2 instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTipocom2");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportTipocom2 findById( java.lang.Long id) {
log.debug("getting GnpgoReportTipocom2 instance with id: " + id);
try {
GnpgoReportTipocom2 instance = (GnpgoReportTipocom2) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTipocom2", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportTipocom2> findByExample(GnpgoReportTipocom2 instance) {
log.debug("finding GnpgoReportTipocom2 instance by example");
try {
List<GnpgoReportTipocom2> results = (List<GnpgoReportTipocom2>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTipocom2")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,45 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 10-ott-2008 11.09.13 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTrasloco" table="GNPGO_REPORT_TRASLOCO">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="dataRicezioneKo" type="date">
<column name="DATA_RICEZIONE_KO" length="7" not-null="true" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="numeroTentativiEffettuati" type="java.lang.Long">
<column name="NUMERO_TENTATIVI_EFFETTUATI" precision="22" scale="0" not-null="true" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,150 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.09.17 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportTrasloco generated by hbm2java
*/
public class GnpgoReportTrasloco implements java.io.Serializable {
private Long idProg;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private Date dataRicezioneKo;
private String canaleVendita;
private String marcaggio;
private Long numeroTentativiEffettuati;
private String processo;
private Date dataInserimento;
private String cowOrigine;
public GnpgoReportTrasloco() {
}
public GnpgoReportTrasloco(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezioneKo, Long numeroTentativiEffettuati, Date dataInserimento, String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezioneKo = dataRicezioneKo;
this.numeroTentativiEffettuati = numeroTentativiEffettuati;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public GnpgoReportTrasloco(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, Date dataRicezioneKo, String canaleVendita, String marcaggio, Long numeroTentativiEffettuati, String processo, Date dataInserimento, String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.dataRicezioneKo = dataRicezioneKo;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.numeroTentativiEffettuati = numeroTentativiEffettuati;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public Date getDataRicezioneKo() {
return this.dataRicezioneKo;
}
public void setDataRicezioneKo(Date dataRicezioneKo) {
this.dataRicezioneKo = dataRicezioneKo;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public Long getNumeroTentativiEffettuati() {
return this.numeroTentativiEffettuati;
}
public void setNumeroTentativiEffettuati(Long numeroTentativiEffettuati) {
this.numeroTentativiEffettuati = numeroTentativiEffettuati;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
}

View File

@@ -0,0 +1,193 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportTrasloco.
* @see .GnpgoReportTrasloco
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportTraslocoDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportTraslocoDAO.class);
//public static final String HB_PROP_CODICE_OLO="codiceOlo";
public static final String HB_PROP_MARCAGGIO="marcaggio";
public static final String HB_PROP_CANALE_VENDITA="canaleVendita";
public static final String HB_PROP_COW_ORIGINE="cowOrigine";
public void save(GnpgoReportTrasloco transientInstance) {
log.debug("saving GnpgoReportTrasloco instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportTrasloco> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportTrasloco instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportTrasloco model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List findAll() {
log.debug("finding all GnpgoReportTrasloco ");
try {
String queryString = " from GnpgoReportTrasloco";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportTrasloco instance) {
log.debug("attaching dirty GnpgoReportTrasloco instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportTrasloco instance) {
log.debug("attaching clean GnpgoReportTrasloco instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportTrasloco persistentInstance) {
log.debug("deleting GnpgoReportTrasloco instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportTrasloco merge(GnpgoReportTrasloco detachedInstance) {
log.debug("merging GnpgoReportTrasloco instance");
try {
GnpgoReportTrasloco result = (GnpgoReportTrasloco) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportTrasloco> findByCriteria(List criterion) {
log.debug("finding GnpgoReportTrasloco instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTrasloco");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportTrasloco findById( java.lang.Long id) {
log.debug("getting GnpgoReportTrasloco instance with id: " + id);
try {
GnpgoReportTrasloco instance = (GnpgoReportTrasloco) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTrasloco", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportTrasloco> findByExample(GnpgoReportTrasloco instance) {
log.debug("finding GnpgoReportTrasloco instance by example");
try {
List<GnpgoReportTrasloco> results = (List<GnpgoReportTrasloco>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportTrasloco")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 18-nov-2008 11.38.28 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportWaitCodSessOlo" table="GNPGO_REPORT_WAIT_COD_SESS_OLO">
<id name="idProg" type="java.lang.Long">
<column name="ID_PROG" precision="22" scale="0" />
<generator class="assigned"></generator>
</id>
<many-to-one name="gnpgoSollRepWaitCodSess" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoSollRepWaitCodSess" fetch="join" cascade="save-update">
<column name="ID_PROG_SOLLECITO" precision="22" scale="0" />
</many-to-one>
<property name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" not-null="true" />
</property>
<property name="piattaformaProvenienza" type="string">
<column name="PIATTAFORMA_PROVENIENZA" length="1" not-null="true" />
</property>
<property name="numeroTelefono" type="string">
<column name="NUMERO_TELEFONO" length="12" not-null="true" />
</property>
<property name="codiceOlo" type="string">
<column name="CODICE_OLO" length="3" not-null="true" />
</property>
<property name="cor" type="string">
<column name="COR" length="12" />
</property>
<property name="cos" type="string">
<column name="COS" length="3" />
</property>
<property name="dataInvioOlo" type="date">
<column name="DATA_INVIO_OLO" length="7" not-null="true" />
</property>
<property name="canaleVendita" type="string">
<column name="CANALE_VENDITA" length="5" />
</property>
<property name="marcaggio" type="string">
<column name="MARCAGGIO" length="2" />
</property>
<property name="nomeFile" type="string">
<column name="NOME_FILE" length="50" not-null="true" />
</property>
<property name="processo" type="string">
<column name="PROCESSO" length="25" />
</property>
<property name="dataInserimento" type="date">
<column name="DATA_INSERIMENTO" length="7" not-null="true" />
</property>
<property name="cowOrigine" type="string">
<column name="COW_ORIGINE" length="3" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,178 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 18-nov-2008 11.38.29 by Hibernate Tools 3.2.0.CR1
import java.util.Date;
/**
* GnpgoReportWaitCodSessOlo generated by hbm2java
*/
public class GnpgoReportWaitCodSessOlo implements java.io.Serializable {
private Long idProg;
private GnpgoSollRepWaitCodSess gnpgoSollRepWaitCodSess;
private String idEsigenza;
private String piattaformaProvenienza;
private String numeroTelefono;
private String codiceOlo;
private String cor;
private String cos;
private Date dataInvioOlo;
private String canaleVendita;
private String marcaggio;
private String nomeFile;
private String processo;
private Date dataInserimento;
private String cowOrigine;
public GnpgoReportWaitCodSessOlo() {
}
public GnpgoReportWaitCodSessOlo(Long idProg, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, String cos, Date dataInvioOlo, String nomeFile, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.cos = cos;
this.dataInvioOlo = dataInvioOlo;
this.nomeFile = nomeFile;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public GnpgoReportWaitCodSessOlo(Long idProg, GnpgoSollRepWaitCodSess gnpgoSollRepWaitCodSess, String idEsigenza, String piattaformaProvenienza, String numeroTelefono, String codiceOlo, String cor, String cos, Date dataInvioOlo, String canaleVendita, String marcaggio, String nomeFile, String processo, Date dataInserimento,String cowOrigine) {
this.idProg = idProg;
this.gnpgoSollRepWaitCodSess = gnpgoSollRepWaitCodSess;
this.idEsigenza = idEsigenza;
this.piattaformaProvenienza = piattaformaProvenienza;
this.numeroTelefono = numeroTelefono;
this.codiceOlo = codiceOlo;
this.cor = cor;
this.cos = cos;
this.dataInvioOlo = dataInvioOlo;
this.canaleVendita = canaleVendita;
this.marcaggio = marcaggio;
this.nomeFile = nomeFile;
this.processo = processo;
this.dataInserimento = dataInserimento;
this.cowOrigine = cowOrigine;
}
public String getCowOrigine() {
return cowOrigine;
}
public void setCowOrigine(String cowOrigine) {
this.cowOrigine = cowOrigine;
}
public Long getIdProg() {
return this.idProg;
}
public void setIdProg(Long idProg) {
this.idProg = idProg;
}
public GnpgoSollRepWaitCodSess getGnpgoSollRepWaitCodSess() {
return this.gnpgoSollRepWaitCodSess;
}
public void setGnpgoSollRepWaitCodSess(GnpgoSollRepWaitCodSess gnpgoSollRepWaitCodSess) {
this.gnpgoSollRepWaitCodSess = gnpgoSollRepWaitCodSess;
}
public String getIdEsigenza() {
return this.idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getPiattaformaProvenienza() {
return this.piattaformaProvenienza;
}
public void setPiattaformaProvenienza(String piattaformaProvenienza) {
this.piattaformaProvenienza = piattaformaProvenienza;
}
public String getNumeroTelefono() {
return this.numeroTelefono;
}
public void setNumeroTelefono(String numeroTelefono) {
this.numeroTelefono = numeroTelefono;
}
public String getCodiceOlo() {
return this.codiceOlo;
}
public void setCodiceOlo(String codiceOlo) {
this.codiceOlo = codiceOlo;
}
public String getCor() {
return this.cor;
}
public void setCor(String cor) {
this.cor = cor;
}
public String getCos() {
return this.cos;
}
public void setCos(String cos) {
this.cos = cos;
}
public Date getDataInvioOlo() {
return this.dataInvioOlo;
}
public void setDataInvioOlo(Date dataInvioOlo) {
this.dataInvioOlo = dataInvioOlo;
}
public String getCanaleVendita() {
return this.canaleVendita;
}
public void setCanaleVendita(String canaleVendita) {
this.canaleVendita = canaleVendita;
}
public String getMarcaggio() {
return this.marcaggio;
}
public void setMarcaggio(String marcaggio) {
this.marcaggio = marcaggio;
}
public String getNomeFile() {
return this.nomeFile;
}
public void setNomeFile(String nomeFile) {
this.nomeFile = nomeFile;
}
public String getProcesso() {
return this.processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public Date getDataInserimento() {
return this.dataInserimento;
}
public void setDataInserimento(Date dataInserimento) {
this.dataInserimento = dataInserimento;
}
}

View File

@@ -0,0 +1,195 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 10-ott-2008 11.07.57 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoReportWaitCodSessOlo.
* @see .GnpgoReportWaitCodSessOlo
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoReportWaitCodSessOloDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoReportWaitCodSessOloDAO.class);
//public static final String HB_PROP_CODICE_OLO="codiceOlo";
public static final String HB_PROP_DATA_INVIO_OLO="dataInvioOlo";
public static final String HB_PROP_MARCAGGIO="marcaggio";
public static final String HB_PROP_CANALE_VENDITA="canaleVendita";
public static final String ID_HIB_PROP_ID_ESIGENZA = "idEsigenza";
public static final String HB_PROP_COW_ORIGINE="cowOrigine";
public void save(GnpgoReportWaitCodSessOlo transientInstance) {
log.debug("saving GnpgoReportWaitCodSessOlo instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoReportWaitCodSessOlo> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoReportWaitCodSessOlo instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoReportWaitCodSessOlo model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportWaitCodSessOlo> findAll() {
log.debug("finding all GnpgoReportWaitCodSessOlo ");
try {
String queryString = " from GnpgoReportWaitCodSessOlo";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoReportWaitCodSessOlo instance) {
log.debug("attaching dirty GnpgoReportWaitCodSessOlo instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoReportWaitCodSessOlo instance) {
log.debug("attaching clean GnpgoReportWaitCodSessOlo instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoReportWaitCodSessOlo persistentInstance) {
log.debug("deleting GnpgoReportWaitCodSessOlo instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoReportWaitCodSessOlo merge(GnpgoReportWaitCodSessOlo detachedInstance) {
log.debug("merging GnpgoReportWaitCodSessOlo instance");
try {
GnpgoReportWaitCodSessOlo result = (GnpgoReportWaitCodSessOlo) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoReportWaitCodSessOlo> findByCriteria(List criterion) {
log.debug("finding GnpgoReportWaitCodSessOlo instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportWaitCodSessOlo");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoReportWaitCodSessOlo findById( java.lang.Long id) {
log.debug("getting GnpgoReportWaitCodSessOlo instance with id: " + id);
try {
GnpgoReportWaitCodSessOlo instance = (GnpgoReportWaitCodSessOlo) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportWaitCodSessOlo", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoReportWaitCodSessOlo> findByExample(GnpgoReportWaitCodSessOlo instance) {
log.debug("finding GnpgoReportWaitCodSessOlo instance by example");
try {
List<GnpgoReportWaitCodSessOlo> results = (List<GnpgoReportWaitCodSessOlo>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoReportWaitCodSessOlo")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,29 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 12-nov-2008 10.26.22 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoSemaforoRec"
table="GNPGO_SEMAFORO_REC">
<id name="idEsigenza" type="string">
<column name="ID_ESIGENZA" length="15" />
<generator class="assigned"></generator>
</id>
<property name="processo" type="string">
<column name="PROCESSO" length="10" />
</property>
<property name="stato" type="java.lang.Long">
<column name="STATO" precision="2" scale="0" />
</property>
<property name="dataRicezione" type="date">
<column name="DATA_RICEZIONE" length="7" />
</property>
<property name="semaforo" type="string">
<column name="SEMAFORO" length="30" />
</property>
<property name="descrizione" type="string">
<column name="DESCRIZIONE" length="30" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,80 @@
package it.valueteam.gnpgo.core.dao.db.hb;
import java.util.Date;
// Generated 12-nov-2008 10.26.23 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoSemaforoRec generated by hbm2java
*/
public class GnpgoSemaforoRec implements java.io.Serializable {
private String idEsigenza;
private String processo;
private Long stato;
private Date dataRicezione;
private String semaforo;
private String descrizione;
public GnpgoSemaforoRec() {
}
public Date getDataRicezione() {
return dataRicezione;
}
public void setDataRicezione(Date dataRicezione) {
this.dataRicezione = dataRicezione;
}
public String getDescrizione() {
return descrizione;
}
public void setDescrizione(String descrizione) {
this.descrizione = descrizione;
}
public String getIdEsigenza() {
return idEsigenza;
}
public void setIdEsigenza(String idEsigenza) {
this.idEsigenza = idEsigenza;
}
public String getProcesso() {
return processo;
}
public void setProcesso(String processo) {
this.processo = processo;
}
public String getSemaforo() {
return semaforo;
}
public void setSemaforo(String semaforo) {
this.semaforo = semaforo;
}
public Long getStato() {
return stato;
}
public void setStato(Long stato) {
this.stato = stato;
}
}

View File

@@ -0,0 +1,235 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 12-nov-2008 10.26.55 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import it.valueteam.gnpgo.core.object.GnpgoSemaforoSummary;
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoSemaforoRec.
* @see .GnpgoSemaforoRec
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoSemaforoRecDAO extends BaseHibernateDAO {
protected static final Log log = LogFactory.getLog(GnpgoSemaforoRecDAO.class);
public static final String HB_PROP_DATA_RICEZIONE = "dataRicezione";
public static final String HB_PROP_STATO = "stato";
public static final String HB_PROP_SEMAFORO = "semaforo";
public static final String HB_PROP_PROCESSO = "processo";
private static final String SEMAFORO_SUMMARY_SELECT_CLAUSE =
"select new it.valueteam.gnpgo.core.object.GnpgoSemaforoSummary(persistent.semaforo, persistent.stato, persistent.descrizione, count(persistent.idEsigenza)) "+
"from GnpgoSemaforoRec persistent ";
private static final String SEMAFORO_SUMMARY_WHERE_CLAUSE =
"where persistent.dataRicezione = TRUNC(:date) and persistent.processo = :processo ";
private static final String SEMAFORO_SUMMARY_WHERE_WITH_INTERVAL_CLAUSE =
"where persistent.dataRicezione between TRUNC(:dateFrom) and TRUNC(:dateTo) and persistent.processo = :processo ";
private static final String SEMAFORO_SUMMARY_GROUP_BY_CLAUSE =
"group by persistent.semaforo, persistent.stato, persistent.descrizione";
public void save(GnpgoSemaforoRec transientInstance) {
log.debug("saving GnpgoSemaforoRec instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
} catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoSemaforoRec> findByProperty(String propertyName,
Object value) {
log.debug("finding GnpgoSemaforoRec instance with property: "
+ propertyName + ", value: " + value);
try {
String queryString = "select model from GnpgoSemaforoRec model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoSemaforoRec> findAll() {
log.debug("finding all GnpgoSemaforoRec ");
try {
String queryString = " from GnpgoSemaforoRec";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
} finally {
closeSession();
}
}
public void attachDirty(GnpgoSemaforoRec instance) {
log.debug("attaching dirty GnpgoSemaforoRec instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoSemaforoRec instance) {
log.debug("attaching clean GnpgoSemaforoRec instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
} catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoSemaforoRec persistentInstance) {
log.debug("deleting GnpgoSemaforoRec instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
} catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoSemaforoRec merge(GnpgoSemaforoRec detachedInstance) {
log.debug("merging GnpgoSemaforoRec instance");
try {
GnpgoSemaforoRec result = (GnpgoSemaforoRec) getSession().merge(
detachedInstance);
log.debug("merge successful");
flush();
return result;
} catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoSemaforoRec> findByCriteria(List criterion) {
log.debug("finding GnpgoSemaforoRec instance by criteria");
try {
Criteria crit = getSession().createCriteria(
"it.valueteam.gnpgo.core.dao.db.hb.GnpgoSemaforoRec");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoSemaforoRec findById(String id) {
log.debug("getting GnpgoSemaforoRec instance with id: " + id);
try {
GnpgoSemaforoRec instance = (GnpgoSemaforoRec) getSession().get(
"it.valueteam.gnpgo.core.dao.db.hb.GnpgoSemaforoRec", id);
if (instance == null) {
log.debug("get successful, no instance found");
} else {
log.debug("get successful, instance found");
}
return instance;
} catch (RuntimeException re) {
log.error("get failed", re);
throw re;
} finally {
closeSession();
}
}
public List<GnpgoSemaforoRec> findByExample(GnpgoSemaforoRec instance) {
log.debug("finding GnpgoSemaforoRec instance by example");
try {
List<GnpgoSemaforoRec> results = (List<GnpgoSemaforoRec>) getSession()
.createCriteria(
"it.valueteam.gnpgo.core.dao.db.hb.GnpgoSemaforoRec")
.add(create(instance)).list();
log.debug("find by example successful, result size: "
+ results.size());
return results;
} catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
} finally {
closeSession();
}
}
/**
* Estrae gli attributi di GnpgoSemaforoSummary raggruppandoli per stato
* e semaforo
* @param date - data per la quale estrarre GnpgoSemaforoSummary
* @param processo - processo per il quale estrarre GnpgoSemaforoSummary
* @return
*/
public List<GnpgoSemaforoSummary> groupBy(Date date, String processo) {
//creo una hql query (non nativa)
Query hqlQuery = getSession().createQuery(SEMAFORO_SUMMARY_SELECT_CLAUSE
+ SEMAFORO_SUMMARY_WHERE_CLAUSE
+ SEMAFORO_SUMMARY_GROUP_BY_CLAUSE)
.setParameter("date", date)
.setParameter("processo", processo);
return hqlQuery.list();
}
/**
* Estrae gli attributi di GnpgoSemaforoSummary raggruppandoli per stato
* e semaforo
* @param dateFrom - data che rappresenta l'estremo temporale inferiore
* per il quale estrarre GnpgoSemaforoSummary
* @param dateTo - data che rappresenta l'estremo temporale superiore
* per il quale estrarre GnpgoSemaforoSummary
* @param processo - processo per il quale estrarre GnpgoSemaforoSummary
* @return
*/
public List<GnpgoSemaforoSummary> groupBy(Date dateFrom, Date dateTo, String processo) {
//creo una hql query (non nativa)
Query hqlQuery = getSession().createQuery(SEMAFORO_SUMMARY_SELECT_CLAUSE
+ SEMAFORO_SUMMARY_WHERE_WITH_INTERVAL_CLAUSE
+ SEMAFORO_SUMMARY_GROUP_BY_CLAUSE)
.setParameter("dateFrom", dateFrom)
.setParameter("dateTo", dateTo)
.setParameter("processo", processo);
return hqlQuery.list();
}
}

View File

@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<!-- Generated 27-nov-2008 16.11.11 by Hibernate Tools 3.2.0.CR1 -->
<hibernate-mapping>
<class name="it.valueteam.gnpgo.core.dao.db.hb.GnpgoSoglieMonitoring"
table="GNPGO_SOGLIE_MONITORING" mutable="false">
<composite-id name="id" class="it.valueteam.gnpgo.core.dao.db.hb.GnpgoSoglieMonitoringId">
<key-property name="idStato" type="java.lang.Long">
<column name="ID_STATO" precision="22" scale="0" />
</key-property>
<key-property name="sottoStato" type="string">
<column name="SOTTO_STATO" length="20" />
</key-property>
<key-property name="semaforo" type="string">
<column name="SEMAFORO" length="30" />
</key-property>
</composite-id>
<property name="tipoSoglia" type="string">
<column name="TIPO_SOGLIA" length="30" />
</property>
<property name="sogliaMin" type="java.lang.Long">
<column name="SOGLIA_MIN" precision="22" scale="0" />
</property>
<property name="sogliaMax" type="java.lang.Long">
<column name="SOGLIA_MAX" precision="22" scale="0" />
</property>
<property name="note" type="string">
<column name="NOTE" />
</property>
</class>
</hibernate-mapping>

View File

@@ -0,0 +1,75 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 16.11.13 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoSoglieMonitoring generated by hbm2java
*/
public class GnpgoSoglieMonitoring implements java.io.Serializable {
private GnpgoSoglieMonitoringId id;
private String tipoSoglia;
private Long sogliaMin;
private Long sogliaMax;
private String note;
public GnpgoSoglieMonitoring() {
}
public GnpgoSoglieMonitoring(GnpgoSoglieMonitoringId id) {
this.id = id;
}
public GnpgoSoglieMonitoring(GnpgoSoglieMonitoringId id, String tipoSoglia, Long sogliaMin, Long sogliaMax, String note) {
this.id = id;
this.tipoSoglia = tipoSoglia;
this.sogliaMin = sogliaMin;
this.sogliaMax = sogliaMax;
this.note = note;
}
public GnpgoSoglieMonitoringId getId() {
return this.id;
}
public void setId(GnpgoSoglieMonitoringId id) {
this.id = id;
}
public String getTipoSoglia() {
return this.tipoSoglia;
}
public void setTipoSoglia(String tipoSoglia) {
this.tipoSoglia = tipoSoglia;
}
public Long getSogliaMin() {
return this.sogliaMin;
}
public void setSogliaMin(Long sogliaMin) {
this.sogliaMin = sogliaMin;
}
public Long getSogliaMax() {
return this.sogliaMax;
}
public void setSogliaMax(Long sogliaMax) {
this.sogliaMax = sogliaMax;
}
public String getNote() {
return this.note;
}
public void setNote(String note) {
this.note = note;
}
}

View File

@@ -0,0 +1,191 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 16.10.52 by Hibernate Tools Customizzato per GNPGO da C.A. 3.2.0.CR1
import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.hibernate.LockMode;
import static org.hibernate.criterion.Example.create;
/**
* DAO object for domain model class GnpgoSoglieMonitoring.
* @see .GnpgoSoglieMonitoring
* @author C.A.
*/
import org.hibernate.Query;
import org.hibernate.criterion.Criterion;
import org.hibernate.Criteria;
import java.util.*;
public class GnpgoSoglieMonitoringDAO extends BaseHibernateDAO{
protected static final Log log = LogFactory.getLog(GnpgoSoglieMonitoringDAO.class);
public void save(GnpgoSoglieMonitoring transientInstance) {
log.debug("saving GnpgoSoglieMonitoring instance");
try {
getSession().save(transientInstance);
log.debug("save successful");
}
catch (RuntimeException re) {
log.error("save failed", re);
throw re;
}
}
public List<GnpgoSoglieMonitoring> findByProperty(String propertyName, Object value) {
log.debug("finding GnpgoSoglieMonitoring instance with property: " + propertyName
+ ", value: " + value);
try {
String queryString = "select model from GnpgoSoglieMonitoring model where model."
+ propertyName + "= ?";
Query queryObject = getSession().createQuery(queryString);
queryObject.setParameter(0, value);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find by property name failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoSoglieMonitoring> findAll() {
log.debug("finding all GnpgoSoglieMonitoring ");
try {
String queryString = " from GnpgoSoglieMonitoring";
Query queryObject = getSession().createQuery(queryString);
return queryObject.list();
} catch (RuntimeException re) {
log.error("find all name failed", re);
throw re;
}finally {
closeSession();
}
}
public void attachDirty(GnpgoSoglieMonitoring instance) {
log.debug("attaching dirty GnpgoSoglieMonitoring instance");
try {
getSession().saveOrUpdate(instance);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void attachClean(GnpgoSoglieMonitoring instance) {
log.debug("attaching clean GnpgoSoglieMonitoring instance");
try {
getSession().lock(instance, LockMode.NONE);
log.debug("attach successful");
}
catch (RuntimeException re) {
log.error("attach failed", re);
throw re;
}
}
public void delete(GnpgoSoglieMonitoring persistentInstance) {
log.debug("deleting GnpgoSoglieMonitoring instance");
try {
getSession().delete(persistentInstance);
log.debug("delete successful");
}
catch (RuntimeException re) {
log.error("delete failed", re);
throw re;
}
}
public GnpgoSoglieMonitoring merge(GnpgoSoglieMonitoring detachedInstance) {
log.debug("merging GnpgoSoglieMonitoring instance");
try {
GnpgoSoglieMonitoring result = (GnpgoSoglieMonitoring) getSession().merge(detachedInstance);
log.debug("merge successful");
flush();
return result;
}
catch (RuntimeException re) {
log.error("merge failed", re);
throw re;
}
}
public List<GnpgoSoglieMonitoring> findByCriteria(List criterion) {
log.debug("finding GnpgoSoglieMonitoring instance by criteria");
try {
Criteria crit = getSession().createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoSoglieMonitoring");
Iterator iter = criterion.iterator();
while (iter.hasNext()) {
crit.add((Criterion) iter.next());
}
List results = crit.list();
log.debug("find by criteria successful, result size: "
+ results.size());
return results;
} catch (RuntimeException e) {
log.error("find by criteria failed", e);
throw e;
} finally {
closeSession();
}
}
public GnpgoSoglieMonitoring findById( GnpgoSoglieMonitoringId id) {
log.debug("getting GnpgoSoglieMonitoring instance with id: " + id);
try {
GnpgoSoglieMonitoring instance = (GnpgoSoglieMonitoring) getSession()
.get("it.valueteam.gnpgo.core.dao.db.hb.GnpgoSoglieMonitoring", id);
if (instance==null) {
log.debug("get successful, no instance found");
}
else {
log.debug("get successful, instance found");
}
return instance;
}
catch (RuntimeException re) {
log.error("get failed", re);
throw re;
}
finally {
closeSession();
}
}
public List<GnpgoSoglieMonitoring> findByExample(GnpgoSoglieMonitoring instance) {
log.debug("finding GnpgoSoglieMonitoring instance by example");
try {
List<GnpgoSoglieMonitoring> results = (List<GnpgoSoglieMonitoring>) getSession()
.createCriteria("it.valueteam.gnpgo.core.dao.db.hb.GnpgoSoglieMonitoring")
.add( create(instance) )
.list();
log.debug("find by example successful, result size: " + results.size());
return results;
}
catch (RuntimeException re) {
log.error("find by example failed", re);
throw re;
}
finally {
closeSession();
}
}
}

View File

@@ -0,0 +1,72 @@
package it.valueteam.gnpgo.core.dao.db.hb;
// Generated 27-nov-2008 16.11.13 by Hibernate Tools 3.2.0.CR1
/**
* GnpgoSoglieMonitoringId generated by hbm2java
*/
public class GnpgoSoglieMonitoringId implements java.io.Serializable {
private Long idStato;
private String sottoStato;
private String semaforo;
public GnpgoSoglieMonitoringId() {
}
public GnpgoSoglieMonitoringId(Long idStato, String sottoStato, String semaforo) {
this.idStato = idStato;
this.sottoStato = sottoStato;
this.semaforo = semaforo;
}
public Long getIdStato() {
return this.idStato;
}
public void setIdStato(Long idStato) {
this.idStato = idStato;
}
public String getSottoStato() {
return this.sottoStato;
}
public void setSottoStato(String sottoStato) {
this.sottoStato = sottoStato;
}
public String getSemaforo() {
return this.semaforo;
}
public void setSemaforo(String semaforo) {
this.semaforo = semaforo;
}
public boolean equals(Object other) {
if ( (this == other ) ) return true;
if ( (other == null ) ) return false;
if ( !(other instanceof GnpgoSoglieMonitoringId) ) return false;
GnpgoSoglieMonitoringId castOther = ( GnpgoSoglieMonitoringId ) other;
return ( (this.getIdStato()==castOther.getIdStato()) || ( this.getIdStato()!=null && castOther.getIdStato()!=null && this.getIdStato().equals(castOther.getIdStato()) ) )
&& ( (this.getSottoStato()==castOther.getSottoStato()) || ( this.getSottoStato()!=null && castOther.getSottoStato()!=null && this.getSottoStato().equals(castOther.getSottoStato()) ) )
&& ( (this.getSemaforo()==castOther.getSemaforo()) || ( this.getSemaforo()!=null && castOther.getSemaforo()!=null && this.getSemaforo().equals(castOther.getSemaforo()) ) );
}
public int hashCode() {
int result = 17;
result = 37 * result + ( getIdStato() == null ? 0 : this.getIdStato().hashCode() );
result = 37 * result + ( getSottoStato() == null ? 0 : this.getSottoStato().hashCode() );
result = 37 * result + ( getSemaforo() == null ? 0 : this.getSemaforo().hashCode() );
return result;
}
}

Some files were not shown because too many files have changed in this diff Show More