First Commit - Source Code from Reply
This commit is contained in:
154
dbcmnpsrc/FE/mnpdev/test/src/it/valueteam/dao/db/BaseDao.java
Normal file
154
dbcmnpsrc/FE/mnpdev/test/src/it/valueteam/dao/db/BaseDao.java
Normal file
@@ -0,0 +1,154 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package it.valueteam.dao.db;
|
||||
|
||||
import it.valueteam.util.IniFile;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
import java.util.Properties;
|
||||
|
||||
import javax.naming.Context;
|
||||
import javax.naming.InitialContext;
|
||||
import javax.sql.DataSource;
|
||||
/**
|
||||
* @author pocciac
|
||||
*
|
||||
*/
|
||||
public abstract class BaseDao {
|
||||
|
||||
protected static DataSource ds;
|
||||
protected static String datasourceName ;
|
||||
protected static String factory;
|
||||
protected static String url;
|
||||
|
||||
static {
|
||||
init();
|
||||
try {
|
||||
initDB();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
private static final void init() {
|
||||
String fileName = System.getProperty("conf_file");
|
||||
IniFile iniFile;
|
||||
try {
|
||||
iniFile = new IniFile(fileName);
|
||||
Properties generalProperties = iniFile
|
||||
.getSection("general.properties");
|
||||
datasourceName = generalProperties.getProperty("datasource");
|
||||
factory = generalProperties.getProperty("WLSERVER.CONTEXT.FACTORY");
|
||||
url = generalProperties.getProperty("WLSERVER.URL");
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Inizializza il data source
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
protected static void initDB() throws Exception {
|
||||
InitialContext ctx=null;
|
||||
try {
|
||||
Properties p = new Properties();
|
||||
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, factory);
|
||||
p.setProperty(Context.PROVIDER_URL, url);
|
||||
ctx = new InitialContext(p);
|
||||
ds = (DataSource) ctx.lookup(datasourceName);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
throw ex;
|
||||
} finally {
|
||||
try {
|
||||
ctx.close();
|
||||
} catch (Exception ex) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Metodo per ottenere le connessioni dal DB Se non è disponibile una
|
||||
* connessione ritorna null
|
||||
*/
|
||||
public Connection getConnection() throws Exception {
|
||||
Connection conn = null;
|
||||
try {
|
||||
if (ds == null)
|
||||
initDB();
|
||||
conn = ds.getConnection();
|
||||
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
throw ex;
|
||||
} finally {
|
||||
try {
|
||||
if (conn != null)
|
||||
conn.setAutoCommit(false);
|
||||
} catch (Exception ex) {
|
||||
ex.printStackTrace();
|
||||
throw ex;
|
||||
}
|
||||
}
|
||||
// se non riesce ad ottenere una connessione per tre volte torna null
|
||||
return conn;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Metodo per la chiusura del ResultSet,dello Statement e della Connection
|
||||
* tale metodo non lancia eccezzioni
|
||||
*
|
||||
* @param rs
|
||||
* @param stmt
|
||||
* @param c
|
||||
*/
|
||||
protected void closeAll(ResultSet rs, Statement stmt, Connection c) {
|
||||
try {
|
||||
if (rs != null)
|
||||
rs.close();
|
||||
} catch (Throwable ex) {
|
||||
}
|
||||
try {
|
||||
if (stmt != null)
|
||||
stmt.close();
|
||||
} catch (Throwable ex) {
|
||||
}
|
||||
try {
|
||||
if (c != null)
|
||||
c.close();
|
||||
} catch (Throwable ex) {
|
||||
}
|
||||
}
|
||||
|
||||
// ******************************************************
|
||||
// *****UTILITA' PER PAGINAZIONE ************************
|
||||
// ******************************************************
|
||||
protected int getRow_page_limit(int page, int row_per_page)
|
||||
throws Exception {
|
||||
if (page <= 0)
|
||||
page = 1;
|
||||
int skipRecords = row_per_page * (page - 1);
|
||||
int row_page_limit = skipRecords + row_per_page;
|
||||
return row_page_limit;
|
||||
}
|
||||
|
||||
protected int getMaxPage(int totRow, int rows_per_page) {
|
||||
int pages = -1;
|
||||
try {
|
||||
pages = totRow / rows_per_page;
|
||||
int resto = totRow % rows_per_page;
|
||||
if (resto != 0)
|
||||
pages++;
|
||||
if (pages == 0)
|
||||
pages = 1;
|
||||
} catch (Exception ex) {
|
||||
}
|
||||
return pages;
|
||||
}
|
||||
}
|
||||
368
dbcmnpsrc/FE/mnpdev/test/src/it/valueteam/dao/db/ClearDbDao.java
Normal file
368
dbcmnpsrc/FE/mnpdev/test/src/it/valueteam/dao/db/ClearDbDao.java
Normal file
@@ -0,0 +1,368 @@
|
||||
/**
|
||||
*
|
||||
*/
|
||||
package it.valueteam.dao.db;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
|
||||
import mnp.objects.ProcessMapper;
|
||||
|
||||
/**
|
||||
* @author pocciac dao per pulire il DB attenzione la classe č single thread
|
||||
*/
|
||||
public class ClearDbDao extends BaseDao {
|
||||
ArrayList qList;
|
||||
ArrayList qListDonor;
|
||||
ArrayList qListRec;
|
||||
ArrayList qListHZ;
|
||||
ArrayList qListDonormvno;
|
||||
ArrayList qListRecipientmvno;
|
||||
ArrayList qListDonorvirtmvno;
|
||||
ArrayList qListRecipientvirtmvno;
|
||||
ArrayList qListCessazione;
|
||||
ArrayList qListCessazionePorting;
|
||||
ArrayList qListPorting;
|
||||
ArrayList qListRecipientVirtuale;
|
||||
ArrayList qListDonVirtEsp;
|
||||
|
||||
public ClearDbDao() {
|
||||
qList = new ArrayList();
|
||||
qListDonor = new ArrayList();
|
||||
qListRec = new ArrayList();
|
||||
qListHZ = new ArrayList();
|
||||
qListDonormvno = new ArrayList();
|
||||
qListRecipientmvno = new ArrayList();
|
||||
qListDonorvirtmvno = new ArrayList();
|
||||
qListRecipientvirtmvno = new ArrayList();
|
||||
qListCessazione = new ArrayList();
|
||||
qListCessazionePorting = new ArrayList();
|
||||
qListPorting = new ArrayList();
|
||||
qListRecipientVirtuale = new ArrayList();
|
||||
qListDonVirtEsp = new ArrayList();
|
||||
|
||||
// TABELLE DONOR
|
||||
qListDonor.add("truncate table MNP_MSP_END_TC_OUT");
|
||||
qListDonor.add("delete from MNP_GEST_RICH_DON_TC_EXT");
|
||||
qListDonor.add("truncate table MNP_STOR_RICH_DON_TC");
|
||||
qListDonor.add("delete from MNP_GEST_RICH_DON_TC");
|
||||
qListDonor.add("truncate table MNP_ASP_CRM_CESSAZIONE_OUT");
|
||||
//qListDonor.add("truncate table MNP_BIT_ANNULL_OUT");
|
||||
//qListDonor.add("truncate table MNP_BIT_SCARTI_DONOR");
|
||||
qListDonor.add("truncate table MNP_BIT_SCARTI_IN");
|
||||
//qListDonor.add("truncate table MNP_BIT_UPDATE_DCO");
|
||||
qListDonor.add("truncate table MNP_CCRMW_COOP_NOT_OUT");
|
||||
qListDonor.add("truncate table MNP_CCRMW_COOP_SCARTI_DONOR");
|
||||
qListDonor.add("truncate table MNP_CCRM_SCARTI_DONOR");
|
||||
qListDonor.add("truncate table MNP_CCRM_NOTIFICA_OUT");
|
||||
qListDonor.add("truncate table MNP_CIRCE_OUT");
|
||||
qListDonor.add("truncate table MNP_CIRCE_OUT_CESS");
|
||||
qListDonor.add("truncate table MNP_CIRCE_OUT_CESS_PORT");
|
||||
qListDonor.add("truncate table MNP_CIRCE_OUT_REC");
|
||||
qListDonor.add("truncate table MNP_CIRCE_OUT_SCARTI");
|
||||
//qListDonor.add("truncate table MNP_CRM_RETENTION_OUT");
|
||||
//qListDonor.add("truncate table MNP_CRM_VALIDAZIONE_IN");
|
||||
//qListDonor.add("truncate table MNP_CRM_VALIDAZIONE_OUT");
|
||||
qListDonor.add("truncate table MNP_DBCGO_NOTIFICA_DONOR_OUT");
|
||||
qListDonor.add("truncate table MNP_DBCGO_PRIORITY_IN");
|
||||
qListDonor.add("truncate table MNP_FLUSSO_DEST");
|
||||
qListDonor.add("truncate table MNP_GISP_ATT_CESS_IN");
|
||||
qListDonor.add("truncate table MNP_GISP_ATT_OUT");
|
||||
qListDonor.add("truncate table MNP_GISP_CESSAZIONE_OUT");
|
||||
qListDonor.add("truncate table MNP_GISP_CESS_OUT");
|
||||
qListDonor.add("truncate table MNP_GISP_RETRIEVE_OUT");
|
||||
qListDonor.add("truncate table MNP_GISP_CESS_OUT_DON_ABB");
|
||||
qListDonor.add("truncate table MNP_GISP_CESS_OUT_DON_PP");
|
||||
//qListDonor.add("truncate table MNP_GISP_RETRIEVE_RECUPERO_OUT");
|
||||
qListDonor.add("truncate table MNP_GISP_SCARTO_ATT_CESS_IN");
|
||||
qListDonor.add("truncate table MNP_MSS_CESSAZIONE_IN");
|
||||
qListDonor.add("truncate table MNP_MSS_SCARTI_IN");
|
||||
qListDonor.add("truncate table MNP_SMS_L1");
|
||||
qListDonor.add("truncate table MNP_SMS_L1V");
|
||||
qListDonor.add("truncate table MNP_STORICO_RICHIESTA");
|
||||
qListDonor.add("truncate table MNP_TIPO_CLIENTI");
|
||||
qListDonor.add("truncate table MNP_XML_ACK_IN");
|
||||
qListDonor.add("truncate table MNP_XML_ACK_OUT");
|
||||
qListDonor.add("truncate table MNP_XML_RICHIESTA_IN");
|
||||
qListDonor.add("truncate table MNP_XML_RICHIESTA_OUT");
|
||||
qListDonor.add("delete from MNP_XML_IN");
|
||||
qListDonor.add("delete from MNP_XML_OUT");
|
||||
qListDonor.add("delete from MNP_XML_SCARTO");
|
||||
qListDonor.add("delete from MNP_GESTIONE_RICHIESTA");
|
||||
qListDonor.add("truncate table MNP_GESTIONE_RICHIESTA_EXT");
|
||||
qListDonor.add("truncate table MNP_RICHIESTA_DUP");
|
||||
qListDonor.add("truncate table MNP_PRJHOC_DONOR");
|
||||
qListDonor.add("delete from MNP_TASK_PIC");
|
||||
qListDonor.add("delete from MNP_DBCFX_DPP_OUT");
|
||||
// FINE TABELLE DONOR
|
||||
|
||||
|
||||
// TABELLE DONORMVNO
|
||||
qListDonormvno.add("delete from MNP_MVNO_NOTIFICA_DON_OUT");
|
||||
qListDonormvno.add("delete from MNP_MVNO_VALIDAZ_IN");
|
||||
qListDonormvno.add("delete from MNP_MVNO_SCARTO_VALIDAZ_IN");
|
||||
qListDonormvno.add("delete from MNP_MVNO_SCARTO_PORTING_IN");
|
||||
qListDonormvno.add("delete from MNP_MVNO_PORTING_IN");
|
||||
qListDonormvno.add("delete from MNP_DBCFX_DPP_OUT");
|
||||
qListDonormvno.addAll(qListDonor);
|
||||
// FINE TABELLE DONORMVNO
|
||||
|
||||
// TABELLE RECIPENT
|
||||
qListRec.add("truncate table MNP_STOR_RICH_REC_TC");
|
||||
qListRec.add("truncate table MNP_GEST_RICH_REC_TC_EXT");
|
||||
qListRec.add("delete from MNP_GEST_RICH_REC_TC");
|
||||
qListRec.add("truncate table MNP_BIT_IN_REC");
|
||||
qListRec.add("delete from MNP_BIT_OUT_REC");
|
||||
//qListRec.add("truncate table MNP_BIT_RECIPIENT_RECUPERO_OUT");
|
||||
qListRec.add("truncate table MNP_BIT_SCARTI_IN");
|
||||
//qListRec.add("truncate table MNP_BIT_SCARTI_UPDATE");
|
||||
//qListRec.add("truncate table MNP_BIT_UPDATE_DCO");
|
||||
qListRec.add("truncate table MNP_CIRCE_OUT_REC");
|
||||
qListRec.add("truncate table MNP_CCRM_NOTIFICA_OUT");
|
||||
qListRec.add("truncate table MNP_CCRMW_COOP_NOT_OUT");
|
||||
qListRec.add("truncate table MNP_DBCGO_NOTIFICA_REC_OUT");
|
||||
qListRec.add("truncate table MNP_DBCGO_PRIORITY_IN");
|
||||
qListRec.add("truncate table MNP_DETT_BONIFICHE_RECIPIENT");
|
||||
qListRec.add("truncate table MNP_GUI_RECIPIENT");
|
||||
qListRec.add("truncate table MNP_GISP_ATT_CESS_IN");
|
||||
qListRec.add("truncate table MNP_GISP_ATT_OUT");
|
||||
qListRec.add("truncate table MNP_GISP_CESSAZIONE_OUT");
|
||||
qListRec.add("truncate table MNP_GISP_CESS_OUT");
|
||||
qListRec.add("truncate table MNP_GISP_RETRIEVE_OUT");
|
||||
//qListRec.add("truncate table MNP_GISP_RETRIEVE_RECUPERO_OUT");
|
||||
qListRec.add("truncate table MNP_GISP_NOTIFICA_IN");
|
||||
qListRec.add("truncate table MNP_GISP_SCARTO_ATT_CESS_IN");
|
||||
qListRec.add("truncate table MNP_MESSAGE_ID");
|
||||
qListRec.add("truncate table MNP_MSC_IN_REC");
|
||||
qListRec.add("truncate table MNP_MSC_OUT_REC");
|
||||
//qListRec.add("truncate table MNP_MSC_RECIPIENT_RECUPERO_OUT");
|
||||
qListRec.add("truncate table MNP_MSC_SCARTI_IN");
|
||||
qListRec.add("truncate table MNP_MSPCOOP_IN_REC");
|
||||
qListRec.add("truncate table MNP_MSPCOOP_OUT_REC");
|
||||
//qListRec.add("truncate table MNP_MSPCOOP_REC_RECUPERO_OUT");
|
||||
qListRec.add("truncate table MNP_MSPCOOP_SCARTI_IN");
|
||||
qListRec.add("truncate table MNP_MSP_IN_REC");
|
||||
qListRec.add("truncate table MNP_MSP_OUT_REC");
|
||||
//qListRec.add("truncate table MNP_MSP_RECIPIENT_RECUPERO_OUT");
|
||||
qListRec.add("truncate table MNP_MSP_SCARTI_IN");
|
||||
qListRec.add("truncate table MNP_MSS_ATTIVAZIONE_IN_REC");
|
||||
qListRec.add("truncate table MNP_MSS_IN");
|
||||
// qListRec.add("truncate table MNP_RICHIESTA_REC_VGR10");
|
||||
// qListRec.add("truncate table MNP_RICHIESTA_REC_VGR5");
|
||||
qListRec.add("truncate table MNP_STORICO_RICHIESTA_REC");
|
||||
qListRec.add("truncate table MNP_XML_ACK_IN");
|
||||
qListRec.add("truncate table MNP_XML_ACK_OUT");
|
||||
qListRec.add("delete from MNP_XML_RICHIESTA_IN");
|
||||
qListRec.add("delete from MNP_XML_RICHIESTA_OUT");
|
||||
qListRec.add("delete from MNP_XML_SCARTO");
|
||||
qListRec.add("delete from MNP_GESTIONE_RICHIESTA_REC_EXT");
|
||||
qListRec.add("delete from MNP_XML_IN");
|
||||
qListRec.add("delete from MNP_XML_OUT");
|
||||
qListRec.add("delete from MNP_XML_SCARTO");
|
||||
qListRec.add("delete from MNP_GESTIONE_RICHIESTA_REC");
|
||||
qListRec.add("delete from MNP_SEC_SMS_OUT");
|
||||
qListRec.add("delete from MNP_RECOVERY_OUT");
|
||||
qListRec.add("delete from MNP_ASP_CRM_CESSAZIONE_OUT");
|
||||
// FINE TABELLE RECIPIENT
|
||||
|
||||
qListHZ.add("truncate table HZ_CCRM_OUT");
|
||||
qListHZ.add("truncate table HZ_MSC_IN");
|
||||
qListHZ.add("truncate table HZ_MSC_OUT");
|
||||
qListHZ.add("truncate table HZ_MSC_SCARTI_IN");
|
||||
qListHZ.add("truncate table HZ_MSC_RECUPERO_OUT");
|
||||
qListHZ.add("truncate table HZ_MSP_IN");
|
||||
qListHZ.add("truncate table HZ_MSP_OUT");
|
||||
qListHZ.add("truncate table HZ_MSP_SCARTI_IN");
|
||||
qListHZ.add("truncate table HZ_MSP_RECUPERO_OUT");
|
||||
qListHZ.add("delete from HZ_BIT_IN");
|
||||
qListHZ.add("delete from HZ_BIT_OUT");
|
||||
qListHZ.add("delete from HZ_BIT_SCARTI_IN");
|
||||
qListHZ.add("truncate table HZ_PITAGORA_IN");
|
||||
qListHZ.add("truncate table HZ_PITAGORA_OUT");
|
||||
qListHZ.add("truncate table HZ_PITAGORA_SCARTI_IN");
|
||||
qListHZ.add("truncate table HZ_STORICO_RICHIESTA");
|
||||
qListHZ.add("delete from HZ_GESTIONE_RICHIESTA");
|
||||
qListHZ.add("truncate table HZ_STORICO_RICH_CESS_OLO");
|
||||
qListHZ.add("delete from HZ_GEST_RICH_CESS_OLO");
|
||||
qListHZ.add("delete from HZ_GISP_IN");
|
||||
qListHZ.add("delete from HZ_GISP_SCARTI_IN");
|
||||
qListHZ.add("delete from HZ_SIMBA_OUT");
|
||||
qListHZ.add("delete from HZ_GISP_CESS_OLO_OUT");
|
||||
qListHZ.add("delete from MNP_FLUSSO_DEST");
|
||||
|
||||
// TABELLE RECIPIENTMVNO
|
||||
qListRecipientmvno.add("delete from MNP_MVNO_NOTIFICA_REC_OUT");
|
||||
qListRecipientmvno.add("delete from MNP_MVNO_VALIDAZ_IN");
|
||||
qListRecipientmvno.add("delete from MNP_MVNO_SCARTO_VALIDAZ_IN");
|
||||
qListRecipientmvno.add("delete from MNP_MVNO_SCARTO_PORTING_IN");
|
||||
qListRecipientmvno.add("delete from MNP_MVNO_PORTING_IN");
|
||||
qListRecipientmvno.addAll(qListRec);
|
||||
// FINE TABELLE RECIPIENTMVNO
|
||||
|
||||
// TABELLE DONORVIRTMVNO
|
||||
qListDonorvirtmvno.add("delete from MNP_STOR_RICH_DON_VIRT_TC");
|
||||
qListDonorvirtmvno.add("delete from MNP_GEST_RICH_DON_TC_EXT");
|
||||
qListDonorvirtmvno.add("delete from MNP_GEST_RICH_DON_VIRT_TC");
|
||||
|
||||
qListDonorvirtmvno.add("delete from MNP_STOR_RICH_REC_TC");
|
||||
qListDonorvirtmvno.add("delete from MNP_GEST_RICH_REC_TC_EXT");
|
||||
qListDonorvirtmvno.add("delete from MNP_GEST_RICH_REC_TC");
|
||||
|
||||
qListDonorvirtmvno.add("delete from MNP_STORICO_RICH_DON_VIRT");
|
||||
qListDonorvirtmvno.add("delete from MNP_GEST_RICH_DONOR_VIRT");
|
||||
qListDonorvirtmvno.add("delete from MNP_MVNO_NOTIFICA_DON_OUT");
|
||||
qListDonorvirtmvno.add("delete from MNP_MVNO_VALIDAZ_IN");
|
||||
qListDonorvirtmvno.add("delete from MNP_CCRMW_COOP_NOT_OUT");
|
||||
qListDonorvirtmvno.add("delete from MNP_GISP_SCARTO_NOTIFICA_IN");
|
||||
qListDonorvirtmvno.add("delete from MNP_ASP_CRM_CESSAZIONE_OUT");
|
||||
qListDonorvirtmvno.addAll(qListRec);
|
||||
// FINE TABELLE DONORMVNO
|
||||
|
||||
// TABELLE RECIPIENTVIRTMVNO
|
||||
qListRecipientvirtmvno.add("delete from MNP_STORICO_RICH_REC_VIRT");
|
||||
qListRecipientvirtmvno.add("delete from MNP_GEST_RICH_REC_VIRT");
|
||||
qListRecipientvirtmvno.add("delete from MNP_MVNO_NOTIFICA_REC_OUT");
|
||||
qListRecipientvirtmvno.add("delete from MNP_MVNO_PORTING_IN");
|
||||
qListRecipientvirtmvno.add("truncate table MNP_GISP_ATT_OUT");
|
||||
qListRecipientvirtmvno.add("delete from MNP_GISP_SCARTO_NOTIFICA_IN");
|
||||
qListRecipientvirtmvno.add("delete from MNP_GISP_NOTIFICA_IN");
|
||||
qListRecipientvirtmvno.add("delete from MNP_GISP_CESS_OUT");
|
||||
qListRecipientvirtmvno.addAll(qListDonor);
|
||||
qListRecipientvirtmvno.addAll(qListRecipientmvno);
|
||||
// FINE TABELLE RECIPIENTVIRTMVNO
|
||||
|
||||
// TABELLE CESSAZIONE
|
||||
qListCessazione.add("truncate table MNP_STORICO_CESS");
|
||||
qListCessazione.add("truncate table MNP_XML_RICHIESTA_IN");
|
||||
qListCessazione.add("truncate table MNP_XML_RICHIESTA_OUT");
|
||||
qListCessazione.add("truncate table MNP_XML_ACK_OUT");
|
||||
qListCessazione.add("truncate table MNP_CIRCE_OUT_CESS");
|
||||
qListCessazione.add("truncate table MNP_MSS_CESS_IN");
|
||||
qListCessazione.add("truncate table MNP_XML_SCARTO");
|
||||
qListCessazione.add("truncate table MNP_RICHIESTA_CESS_DUP");
|
||||
qListCessazione.add("truncate table MNP_GISP_CESSAZIONE_OUT");
|
||||
qListCessazione.add("delete from MNP_XML_OUT");
|
||||
qListCessazione.add("delete from MNP_GESTIONE_RICHIESTA_CESS");
|
||||
qListCessazione.add("delete from MNP_XML_ACK_IN");
|
||||
qListCessazione.add("delete from MNP_XML_IN");
|
||||
qListCessazione.add("truncate table MNP_DBCFX_DPP_OUT");
|
||||
qListCessazione.add("truncate table MNP_MSS_VERIFICA_CESS_OUT");
|
||||
// FINE TABELLE CESSAZIONE
|
||||
|
||||
//TABELLE CESSAZIONE PORTING
|
||||
qListCessazionePorting.add("truncate table MNP_STORICO_CESS_PORTING");
|
||||
qListCessazionePorting.add("truncate table MNP_XML_RICHIESTA_IN");
|
||||
qListCessazionePorting.add("truncate table MNP_XML_RICHIESTA_OUT");
|
||||
qListCessazionePorting.add("truncate table MNP_XML_ACK_OUT");
|
||||
qListCessazionePorting.add("truncate table MNP_MSS_WAIT");
|
||||
qListCessazionePorting.add("truncate table MNP_MSS_CESS_PORTING_IN");
|
||||
qListCessazionePorting.add("truncate table MNP_CIRCE_OUT_CESS_PORT");
|
||||
qListCessazionePorting.add("truncate table MNP_XML_SCARTO");
|
||||
qListCessazionePorting.add("delete from MNP_XML_ACK_OUT");
|
||||
qListCessazionePorting.add("delete from MNP_XML_OUT");
|
||||
qListCessazionePorting.add("delete from MNP_GESTIONE_RICH_CESS_PORT");
|
||||
qListCessazionePorting.add("delete from MNP_XML_ACK_IN");
|
||||
qListCessazionePorting.add("delete from MNP_XML_IN");
|
||||
qListCessazionePorting.add("truncate table MNP_DBCFX_DPP_OUT");
|
||||
qListCessazionePorting.add("truncate table MNP_MSS_VERIFICA_CESS_OUT");
|
||||
// FINE TABELLE CESSAZIONE PORTING
|
||||
|
||||
//TABELLE PORTING
|
||||
qListPorting.add("truncate table MNP_STORICO_PORTING");
|
||||
qListPorting.add("truncate table MNP_XML_RICHIESTA_IN");
|
||||
qListPorting.add("truncate table MNP_XML_RICHIESTA_OUT");
|
||||
qListPorting.add("truncate table MNP_XML_ACK_OUT");
|
||||
qListPorting.add("truncate table MNP_MSS_PORTING_IN");
|
||||
qListPorting.add("truncate table MNP_XML_SCARTO");
|
||||
qListPorting.add("delete from MNP_XML_OUT");
|
||||
qListPorting.add("delete from MNP_GISP_CESS_RESTTP_OUT");
|
||||
qListPorting.add("delete from MNP_GESTIONE_RICHIESTA_PORTING");
|
||||
qListPorting.add("delete from MNP_XML_ACK_IN");
|
||||
qListPorting.add("delete from MNP_XML_IN");
|
||||
qListPorting.add("delete from MNP_GISP_ATT_CESS_IN");
|
||||
|
||||
qListRecipientVirtuale.add("truncate table MNP_STORICO_RICH_REC_VIRT");
|
||||
qListRecipientVirtuale.add("truncate table MNP_STOR_RICH_REC_VIRT_TC");
|
||||
qListRecipientVirtuale.add("delete from MNP_GEST_RICH_REC_VIRT_TC");
|
||||
qListRecipientVirtuale.add("delete from MNP_GEST_RICH_REC_VIRT_TC");
|
||||
qListRecipientVirtuale.add("delete from MNP_STORICO_RICH_REC_VIRT");
|
||||
qListRecipientVirtuale.add("delete from MNP_GEST_RICH_REC_VIRT");
|
||||
qListRecipientVirtuale.add("delete from MNP_CCRMW_COOP_NOT_OUT");
|
||||
}
|
||||
|
||||
public void clearDB(String proc) throws Exception {
|
||||
Connection conn = null;
|
||||
PreparedStatement pstmt = null;
|
||||
|
||||
try {
|
||||
System.out.println("#########################");
|
||||
System.out.println("#### Inizio clear DB ####");
|
||||
System.out.println("#########################");
|
||||
conn = getConnection();
|
||||
String element = null;
|
||||
if (ProcessMapper.proc_DONOR.equals(proc)) {
|
||||
qList = qListDonor;
|
||||
System.out.println("PULIZIA PER LE TABELLE DONOR");
|
||||
} else if (ProcessMapper.proc_RECIPIENT.equals(proc) || ProcessMapper.proc_PRJHOC_RECIPIENT.equals(proc)) {
|
||||
qList = qListRec;
|
||||
System.out.println("PULIZIA PER LE TABELLE RECIPIENT");
|
||||
} else if ("HZ".equals(proc)) {
|
||||
qList = qListHZ;
|
||||
System.out.println("PULIZIA PER LE TABELLE HOME ZONE");
|
||||
} else if ("DM".equals(proc)) {
|
||||
qList = qListDonormvno;
|
||||
System.out.println("PULIZIA PER LE TABELLE DONORMVNO");
|
||||
} else if ("RM".equals(proc)) {
|
||||
qList = qListRecipientmvno;
|
||||
System.out.println("PULIZIA PER LE TABELLE RECIPIENTMVNO");
|
||||
} else if ("DVM".equals(proc)|| "V".equals(proc)) {
|
||||
qList = qListDonorvirtmvno;
|
||||
System.out.println("PULIZIA PER LE TABELLE DONORVIRTUALEMVNO");
|
||||
} else if ("RVM".equals(proc)) {
|
||||
qList = qListRecipientvirtmvno;
|
||||
System.out.println("PULIZIA PER LE TABELLE RECIPIENTVIRTUALEMVNO");
|
||||
} else if (ProcessMapper.proc_CESS.equals(proc)) {
|
||||
qList = qListCessazione;
|
||||
System.out.println("PULIZIA PER LE TABELLE CESSAZIONE");
|
||||
} else if (ProcessMapper.proc_CESS_PORTING.equals(proc)) {
|
||||
qList = qListCessazionePorting;
|
||||
System.out.println("PULIZIA PER LE TABELLE CESSAZIONE PORTING");
|
||||
} else if (ProcessMapper.proc_PORTING_IN.equals(proc)) {
|
||||
qList = qListPorting;
|
||||
System.out.println("PULIZIA PER LE TABELLE PORTING TERZA PARTE");
|
||||
} else if (ProcessMapper.proc_RECIPIENT_VIRT.equals(proc)) {
|
||||
qList = qListRecipientVirtuale;
|
||||
System.out.println("PULIZIA PER LE TABELLE RECIPIENT VIRTUALE");
|
||||
} else {
|
||||
throw new Exception("Processo sconosciuto per clear DB");
|
||||
}
|
||||
|
||||
|
||||
for (Iterator iter = qList.iterator(); iter.hasNext();) {
|
||||
element = (String) iter.next();
|
||||
pstmt = conn.prepareStatement(element);
|
||||
try {
|
||||
System.out.println("Execute query: " + element);
|
||||
pstmt.executeUpdate();
|
||||
} catch (RuntimeException e) {
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
closeAll(null, pstmt, null);
|
||||
}
|
||||
|
||||
}
|
||||
conn.commit();
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
} finally {
|
||||
closeAll(null, null, conn);
|
||||
System.out.println("#######################");
|
||||
System.out.println("#### Fine clear DB ####");
|
||||
System.out.println("#######################");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
package it.valueteam.dao.db;
|
||||
|
||||
import java.sql.Connection;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Statement;
|
||||
|
||||
/**
|
||||
* User: germano.giudici
|
||||
* Date: 22-lug-2009
|
||||
*/
|
||||
public class EventDao extends BaseDao{
|
||||
|
||||
public boolean checkForEvent(String event) throws Exception{
|
||||
Connection conn = null;
|
||||
Statement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
|
||||
try {
|
||||
conn = getConnection();
|
||||
|
||||
pstmt = conn.createStatement();
|
||||
rs = pstmt.executeQuery("select count(*) from "+event);
|
||||
if(rs.next()){
|
||||
int count = rs.getInt(1);
|
||||
if(count!=0){
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
throw e;
|
||||
} finally {
|
||||
closeAll(rs, pstmt, conn);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import org.hibernate.Session;
|
||||
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
public class BaseHibernateTestDAO implements IBaseHibernateDAO {
|
||||
|
||||
public Session getSession() {
|
||||
return HibernateSessionFactory.getCacheSession();
|
||||
}
|
||||
public void closeSession() {
|
||||
HibernateSessionFactory.closeCacheSession();
|
||||
}
|
||||
|
||||
public Session getSingleSession() {
|
||||
return HibernateSessionFactory.getSession();
|
||||
}
|
||||
public void closeSingleSession(Session session) {
|
||||
HibernateSessionFactory.closeSession(session);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.Session;
|
||||
import org.hibernate.cfg.Configuration;
|
||||
|
||||
/**
|
||||
* Configures and provides access to Hibernate sessions, tied to the
|
||||
* current thread of execution. Follows the Thread Local Session
|
||||
* pattern, see {@link http://hibernate.org/42.html }.
|
||||
*/
|
||||
public class HibernateSessionFactory {
|
||||
|
||||
/**
|
||||
* Location of hibernate.cfg.xml file.
|
||||
* Location should be on the classpath as Hibernate uses
|
||||
* #resourceAsStream style lookup for its configuration file.
|
||||
* The default classpath location of the hibernate config file is
|
||||
* in the default package. Use #setConfigFile() to update
|
||||
* the location of the configuration file for the current session.
|
||||
*/
|
||||
private static String CONFIG_FILE_LOCATION = "/hibernate.cfg.xml";
|
||||
private static final ThreadLocal threadLocal = new ThreadLocal();
|
||||
private static Configuration configuration = new Configuration();
|
||||
private static org.hibernate.SessionFactory sessionFactory;
|
||||
private static String configFile = CONFIG_FILE_LOCATION;
|
||||
|
||||
static {
|
||||
try {
|
||||
configuration.configure(configFile);
|
||||
sessionFactory = configuration.buildSessionFactory();
|
||||
} catch (Exception e) {
|
||||
System.err
|
||||
.println("%%%% Error Creating SessionFactory %%%%");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
private HibernateSessionFactory() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ThreadLocal Session instance. Lazy initialize
|
||||
* the <code>SessionFactory</code> if needed.
|
||||
*
|
||||
* @return Session
|
||||
* @throws HibernateException
|
||||
*/
|
||||
public static Session getSession() throws HibernateException {
|
||||
Session session=null;
|
||||
|
||||
if (sessionFactory == null) {
|
||||
rebuildSessionFactory();
|
||||
}
|
||||
session = (sessionFactory != null) ? sessionFactory.openSession()
|
||||
: null;
|
||||
return session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the ThreadLocal Session instance. Lazy initialize
|
||||
* the <code>SessionFactory</code> if needed.
|
||||
*
|
||||
* @return Session
|
||||
* @throws HibernateException
|
||||
*/
|
||||
public static Session getCacheSession() throws HibernateException {
|
||||
Session session = (Session) threadLocal.get();
|
||||
|
||||
if (session == null || !session.isOpen()) {
|
||||
if (sessionFactory == null) {
|
||||
rebuildSessionFactory();
|
||||
}
|
||||
session = (sessionFactory != null) ? sessionFactory.openSession()
|
||||
: null;
|
||||
threadLocal.set(session);
|
||||
}
|
||||
|
||||
return session;
|
||||
}
|
||||
|
||||
/**
|
||||
* Rebuild hibernate session factory
|
||||
*
|
||||
*/
|
||||
public static void rebuildSessionFactory() {
|
||||
try {
|
||||
configuration.configure(configFile);
|
||||
sessionFactory = configuration.buildSessionFactory();
|
||||
} catch (Exception e) {
|
||||
System.err
|
||||
.println("%%%% Error Creating SessionFactory %%%%");
|
||||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Close the single hibernate session instance.
|
||||
*
|
||||
* @throws HibernateException
|
||||
*/
|
||||
public static void closeSession(Session session) throws HibernateException {
|
||||
if (session != null) {
|
||||
session.close();
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Close the single hibernate session instance.
|
||||
*
|
||||
* @throws HibernateException
|
||||
*/
|
||||
public static void closeCacheSession() throws HibernateException {
|
||||
Session session = (Session) threadLocal.get();
|
||||
threadLocal.set(null);
|
||||
|
||||
if (session != null && session.isOpen()) {
|
||||
session.close();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* return session factory
|
||||
*
|
||||
*/
|
||||
public static org.hibernate.SessionFactory getSessionFactory() {
|
||||
return sessionFactory;
|
||||
}
|
||||
|
||||
/**
|
||||
* return session factory
|
||||
*
|
||||
* session factory will be rebuilded in the next call
|
||||
*/
|
||||
public static void setConfigFile(String configFile) {
|
||||
HibernateSessionFactory.configFile = configFile;
|
||||
sessionFactory = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* return hibernate configuration
|
||||
*
|
||||
*/
|
||||
public static Configuration getConfiguration() {
|
||||
return configuration;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,253 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzBitIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzBitIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzBitIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzBitInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzBitInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String DATA_RICEZIONE = "dataRicezione";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String ID_RICHIESTA_BIT = "idRichiestaBit";
|
||||
|
||||
public static final String ID_SYSTEM = "idSystem";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public void save(HzBitIn transientInstance) {
|
||||
log.debug("saving HzBitIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzBitIn persistentInstance) {
|
||||
log.debug("deleting HzBitIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzBitIn instance with id: " + id);
|
||||
try {
|
||||
HzBitIn instance = (HzBitIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzBitIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzBitIn instance) {
|
||||
log.debug("finding HzBitIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzBitIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzBitIn instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzBitIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByDataRicezione(Object dataRicezione) {
|
||||
return findByProperty(DATA_RICEZIONE, dataRicezione);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByIdRichiestaBit(Object idRichiestaBit) {
|
||||
return findByProperty(ID_RICHIESTA_BIT, idRichiestaBit);
|
||||
}
|
||||
|
||||
public List findByIdSystem(Object idSystem) {
|
||||
return findByProperty(ID_SYSTEM, idSystem);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzBitIn instances");
|
||||
try {
|
||||
String queryString = "from HzBitIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitIn merge(HzBitIn detachedInstance) {
|
||||
log.debug("merging HzBitIn instance");
|
||||
try {
|
||||
HzBitIn result = (HzBitIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzBitIn instance) {
|
||||
log.debug("attaching dirty HzBitIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzBitIn instance) {
|
||||
log.debug("attaching clean HzBitIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzBitOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzBitOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzBitOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzBitOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzBitOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String ESITO = "esito";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String ID_RICHIESTA_BIT = "idRichiestaBit";
|
||||
|
||||
public void save(HzBitOut transientInstance) {
|
||||
log.debug("saving HzBitOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzBitOut persistentInstance) {
|
||||
log.debug("deleting HzBitOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzBitOut instance with id: " + id);
|
||||
try {
|
||||
HzBitOut instance = (HzBitOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzBitOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzBitOut instance) {
|
||||
log.debug("finding HzBitOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzBitOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzBitOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzBitOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByEsito(Object esito) {
|
||||
return findByProperty(ESITO, esito);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByIdRichiestaBit(Object idRichiestaBit) {
|
||||
return findByProperty(ID_RICHIESTA_BIT, idRichiestaBit);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzBitOut instances");
|
||||
try {
|
||||
String queryString = "from HzBitOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitOut merge(HzBitOut detachedInstance) {
|
||||
log.debug("merging HzBitOut instance");
|
||||
try {
|
||||
HzBitOut result = (HzBitOut) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzBitOut instance) {
|
||||
log.debug("attaching dirty HzBitOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzBitOut instance) {
|
||||
log.debug("attaching clean HzBitOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzBitScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzBitScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzBitScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzBitScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzBitScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String CODICE_ERRORE = "codiceErrore";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String SYSTEM_ID = "systemId";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public void save(HzBitScartiIn transientInstance) {
|
||||
log.debug("saving HzBitScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzBitScartiIn persistentInstance) {
|
||||
log.debug("deleting HzBitScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzBitScartiIn instance with id: " + id);
|
||||
try {
|
||||
HzBitScartiIn instance = (HzBitScartiIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzBitScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzBitScartiIn instance) {
|
||||
log.debug("finding HzBitScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzBitScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzBitScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzBitScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByCodiceErrore(Object codiceErrore) {
|
||||
return findByProperty(CODICE_ERRORE, codiceErrore);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findBySystemId(Object systemId) {
|
||||
return findByProperty(SYSTEM_ID, systemId);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzBitScartiIn instances");
|
||||
try {
|
||||
String queryString = "from HzBitScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzBitScartiIn merge(HzBitScartiIn detachedInstance) {
|
||||
log.debug("merging HzBitScartiIn instance");
|
||||
try {
|
||||
HzBitScartiIn result = (HzBitScartiIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzBitScartiIn instance) {
|
||||
log.debug("attaching dirty HzBitScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzBitScartiIn instance) {
|
||||
log.debug("attaching clean HzBitScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzCcrmOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzCcrmOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzCcrmOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzCcrmOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzCcrmOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public void save(HzCcrmOut transientInstance) {
|
||||
log.debug("saving HzCcrmOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzCcrmOut persistentInstance) {
|
||||
log.debug("deleting HzCcrmOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzCcrmOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzCcrmOut instance with id: " + id);
|
||||
try {
|
||||
HzCcrmOut instance = (HzCcrmOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzCcrmOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzCcrmOut instance) {
|
||||
log.debug("finding HzCcrmOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzCcrmOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzCcrmOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzCcrmOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzCcrmOut instances");
|
||||
try {
|
||||
String queryString = "from HzCcrmOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzCcrmOut merge(HzCcrmOut detachedInstance) {
|
||||
log.debug("merging HzCcrmOut instance");
|
||||
try {
|
||||
HzCcrmOut result = (HzCcrmOut) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzCcrmOut instance) {
|
||||
log.debug("attaching dirty HzCcrmOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzCcrmOut instance) {
|
||||
log.debug("attaching clean HzCcrmOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
|
||||
<!--
|
||||
Mapping file autogenerated by MyEclipse Persistence Tools
|
||||
-->
|
||||
<hibernate-mapping>
|
||||
<class name="it.valueteam.obj.dao.db.hb.HzDbcfxIn" table="HZ_DBCFX_IN">
|
||||
<id name="uniqueId" type="java.lang.Long">
|
||||
<column name="UNIQUE_ID" precision="22" scale="0" />
|
||||
<generator class="assigned" />
|
||||
</id>
|
||||
<property name="tipoOperazione" type="java.lang.Long">
|
||||
<column name="TIPO_OPERAZIONE" precision="1" scale="0" not-null="true" />
|
||||
</property>
|
||||
<property name="directoryNumber" type="java.lang.String">
|
||||
<column name="DIRECTORY_NUMBER" length="12" not-null="true" />
|
||||
</property>
|
||||
<property name="det" type="java.util.Date">
|
||||
<column name="DET" length="7" not-null="true" />
|
||||
</property>
|
||||
<property name="daScodare" type="java.lang.Long">
|
||||
<column name="DA_SCODARE" precision="1" scale="0" not-null="true" />
|
||||
</property>
|
||||
<property name="idReqInfobus" type="java.lang.String">
|
||||
<column name="ID_REQ_INFOBUS" length="24" not-null="true" />
|
||||
</property>
|
||||
<property name="idSystem" type="java.lang.String">
|
||||
<column name="ID_SYSTEM" length="10" not-null="true" />
|
||||
</property>
|
||||
<property name="tipoServizio" type="java.lang.String">
|
||||
<column name="TIPO_SERVIZIO" length="25" not-null="true" />
|
||||
</property>
|
||||
<property name="dataRicezione" type="java.util.Date">
|
||||
<column name="DATA_RICEZIONE" length="7" not-null="true" />
|
||||
</property>
|
||||
<property name="idRichiesta" type="java.lang.Long">
|
||||
<column name="ID_RICHIESTA" precision="22" scale="0" />
|
||||
</property>
|
||||
</class>
|
||||
</hibernate-mapping>
|
||||
@@ -0,0 +1,132 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzDbcfxIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzDbcfxIn.
|
||||
*
|
||||
* @see it.valueteam.obj.dao.db.hb.HzDbcfxIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzDbcfxInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzDbcfxInDAO.class);
|
||||
|
||||
public void save(HzDbcfxIn transientInstance) {
|
||||
log.debug("saving HzDbcfxIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzDbcfxIn persistentInstance) {
|
||||
log.debug("deleting HzDbcfxIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzDbcfxIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzDbcfxIn instance with id: " + id);
|
||||
try {
|
||||
HzDbcfxIn instance = (HzDbcfxIn) getSession().get(
|
||||
"it.valueteam.obj.dao.db.hb.HzDbcfxIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzDbcfxIn instance) {
|
||||
log.debug("finding HzDbcfxIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzDbcfxIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzDbcfxIn instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzDbcfxIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzDbcfxIn instances");
|
||||
try {
|
||||
String queryString = "from HzDbcfxIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzDbcfxIn merge(HzDbcfxIn detachedInstance) {
|
||||
log.debug("merging HzDbcfxIn instance");
|
||||
try {
|
||||
HzDbcfxIn result = (HzDbcfxIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzDbcfxIn instance) {
|
||||
log.debug("attaching dirty HzDbcfxIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzDbcfxIn instance) {
|
||||
log.debug("attaching clean HzDbcfxIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGestRichCessOlo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGestRichCessOlo.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGestRichCessOlo
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGestRichCessOloDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzGestRichCessOloDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String TIPOLOGIA_UTENZA_MOBILE = "tipologiaUtenzaMobile";
|
||||
|
||||
public static final String TIPOLOGIA_CLIENTE_MOBILE = "tipologiaClienteMobile";
|
||||
|
||||
public static final String STATO_LINEA_UTENZA_FISSA = "statoLineaUtenzaFissa";
|
||||
|
||||
public static final String UTENZA_FISSA_NATIVA_TIM = "utenzaFissaNativaTim";
|
||||
|
||||
public static final String CAUSALE_ANNULLAMENTO = "causaleAnnullamento";
|
||||
|
||||
public void save(HzGestRichCessOlo transientInstance) {
|
||||
log.debug("saving HzGestRichCessOlo instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGestRichCessOlo persistentInstance) {
|
||||
log.debug("deleting HzGestRichCessOlo instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGestRichCessOlo findById(java.lang.Long id) {
|
||||
log.debug("getting HzGestRichCessOlo instance with id: " + id);
|
||||
try {
|
||||
HzGestRichCessOlo instance = (HzGestRichCessOlo) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzGestRichCessOlo", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGestRichCessOlo instance) {
|
||||
log.debug("finding HzGestRichCessOlo instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzGestRichCessOlo").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGestRichCessOlo instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGestRichCessOlo as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByTipologiaUtenzaMobile(Object tipologiaUtenzaMobile) {
|
||||
return findByProperty(TIPOLOGIA_UTENZA_MOBILE, tipologiaUtenzaMobile);
|
||||
}
|
||||
|
||||
public List findByTipologiaClienteMobile(Object tipologiaClienteMobile) {
|
||||
return findByProperty(TIPOLOGIA_CLIENTE_MOBILE, tipologiaClienteMobile);
|
||||
}
|
||||
|
||||
public List findByStatoLineaUtenzaFissa(Object statoLineaUtenzaFissa) {
|
||||
return findByProperty(STATO_LINEA_UTENZA_FISSA, statoLineaUtenzaFissa);
|
||||
}
|
||||
|
||||
public List findByUtenzaFissaNativaTim(Object utenzaFissaNativaTim) {
|
||||
return findByProperty(UTENZA_FISSA_NATIVA_TIM, utenzaFissaNativaTim);
|
||||
}
|
||||
|
||||
public List findByCausaleAnnullamento(Object causaleAnnullamento) {
|
||||
return findByProperty(CAUSALE_ANNULLAMENTO, causaleAnnullamento);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGestRichCessOlo instances");
|
||||
try {
|
||||
String queryString = "from HzGestRichCessOlo";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGestRichCessOlo merge(HzGestRichCessOlo detachedInstance) {
|
||||
log.debug("merging HzGestRichCessOlo instance");
|
||||
try {
|
||||
HzGestRichCessOlo result = (HzGestRichCessOlo) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGestRichCessOlo instance) {
|
||||
log.debug("attaching dirty HzGestRichCessOlo instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGestRichCessOlo instance) {
|
||||
log.debug("attaching clean HzGestRichCessOlo instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,262 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGestioneRichiesta;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGestioneRichiesta.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGestioneRichiesta
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGestioneRichiestaDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzGestioneRichiestaDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String RGN = "rgn";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String SISTEMA_MITTENTE = "sistemaMittente";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String TIPO_PROCESSO = "tipoProcesso";
|
||||
|
||||
public static final String CESSAZIONE_RIENTRO = "cessazioneRientro";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String TIPOLOGIA_CLIENTE_MOBILE = "tipologiaClienteMobile";
|
||||
|
||||
public void save(HzGestioneRichiesta transientInstance) {
|
||||
log.debug("saving HzGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGestioneRichiesta persistentInstance) {
|
||||
log.debug("deleting HzGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGestioneRichiesta findById(java.lang.Long id) {
|
||||
log.debug("getting HzGestioneRichiesta instance with id: " + id);
|
||||
try {
|
||||
HzGestioneRichiesta instance = (HzGestioneRichiesta) getSession()
|
||||
.get("it.valueteam.dao.db.hb.HzGestioneRichiesta", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGestioneRichiesta instance) {
|
||||
log.debug("finding HzGestioneRichiesta instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzGestioneRichiesta").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGestioneRichiesta instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGestioneRichiesta as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByRgn(Object rgn) {
|
||||
return findByProperty(RGN, rgn);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findBySistemaMittente(Object sistemaMittente) {
|
||||
return findByProperty(SISTEMA_MITTENTE, sistemaMittente);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByTipoProcesso(Object tipoProcesso) {
|
||||
return findByProperty(TIPO_PROCESSO, tipoProcesso);
|
||||
}
|
||||
|
||||
public List findByCessazioneRientro(Object cessazioneRientro) {
|
||||
return findByProperty(CESSAZIONE_RIENTRO, cessazioneRientro);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByTipologiaClienteMobile(Object tipologiaClienteMobile) {
|
||||
return findByProperty(TIPOLOGIA_CLIENTE_MOBILE, tipologiaClienteMobile);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGestioneRichiesta instances");
|
||||
try {
|
||||
String queryString = "from HzGestioneRichiesta";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGestioneRichiesta merge(HzGestioneRichiesta detachedInstance) {
|
||||
log.debug("merging HzGestioneRichiesta instance");
|
||||
try {
|
||||
HzGestioneRichiesta result = (HzGestioneRichiesta) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGestioneRichiesta instance) {
|
||||
log.debug("attaching dirty HzGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGestioneRichiesta instance) {
|
||||
log.debug("attaching clean HzGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGispCessOloOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGispCessOloOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGispCessOloOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGispCessOloOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzGispCessOloOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_RICHIESTA = "nomeRichiesta";
|
||||
|
||||
public static final String CAS = "cas";
|
||||
|
||||
public static final String NUM_TEL = "numTel";
|
||||
|
||||
public static final String NUM_FISSO = "numFisso";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public void save(HzGispCessOloOut transientInstance) {
|
||||
log.debug("saving HzGispCessOloOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGispCessOloOut persistentInstance) {
|
||||
log.debug("deleting HzGispCessOloOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispCessOloOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzGispCessOloOut instance with id: " + id);
|
||||
try {
|
||||
HzGispCessOloOut instance = (HzGispCessOloOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzGispCessOloOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGispCessOloOut instance) {
|
||||
log.debug("finding HzGispCessOloOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzGispCessOloOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGispCessOloOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGispCessOloOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeRichiesta(Object nomeRichiesta) {
|
||||
return findByProperty(NOME_RICHIESTA, nomeRichiesta);
|
||||
}
|
||||
|
||||
public List findByCas(Object cas) {
|
||||
return findByProperty(CAS, cas);
|
||||
}
|
||||
|
||||
public List findByNumTel(Object numTel) {
|
||||
return findByProperty(NUM_TEL, numTel);
|
||||
}
|
||||
|
||||
public List findByNumFisso(Object numFisso) {
|
||||
return findByProperty(NUM_FISSO, numFisso);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGispCessOloOut instances");
|
||||
try {
|
||||
String queryString = "from HzGispCessOloOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispCessOloOut merge(HzGispCessOloOut detachedInstance) {
|
||||
log.debug("merging HzGispCessOloOut instance");
|
||||
try {
|
||||
HzGispCessOloOut result = (HzGispCessOloOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGispCessOloOut instance) {
|
||||
log.debug("attaching dirty HzGispCessOloOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGispCessOloOut instance) {
|
||||
log.debug("attaching clean HzGispCessOloOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,259 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGispIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGispIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGispIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGispInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzGispInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String DAC = "dac";
|
||||
|
||||
public static final String DATA_RICEZIONE = "dataRicezione";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_SYSTEM = "idSystem";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzGispIn transientInstance) {
|
||||
log.debug("saving HzGispIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGispIn persistentInstance) {
|
||||
log.debug("deleting HzGispIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzGispIn instance with id: " + id);
|
||||
try {
|
||||
HzGispIn instance = (HzGispIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzGispIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGispIn instance) {
|
||||
log.debug("finding HzGispIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzGispIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGispIn instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGispIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByDac(Object dac) {
|
||||
return findByProperty(DAC, dac);
|
||||
}
|
||||
|
||||
public List findByDataRicezione(Object dataRicezione) {
|
||||
return findByProperty(DATA_RICEZIONE, dataRicezione);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdSystem(Object idSystem) {
|
||||
return findByProperty(ID_SYSTEM, idSystem);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGispIn instances");
|
||||
try {
|
||||
String queryString = "from HzGispIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispIn merge(HzGispIn detachedInstance) {
|
||||
log.debug("merging HzGispIn instance");
|
||||
try {
|
||||
HzGispIn result = (HzGispIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGispIn instance) {
|
||||
log.debug("attaching dirty HzGispIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGispIn instance) {
|
||||
log.debug("attaching clean HzGispIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,195 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGispRetrieveOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGispRetrieveOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGispRetrieveOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGispRetrieveOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzGispRetrieveOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String RESP_FLAG_TIM = "respFlagTim";
|
||||
|
||||
public static final String RESP_CODE = "respCode";
|
||||
|
||||
public static final String RESP_MSG = "respMsg";
|
||||
|
||||
public static final String RESP_STATO_FISSO = "respStatoFisso";
|
||||
|
||||
public static final String RESP_MSISDN = "respMsisdn";
|
||||
|
||||
public static final String RESP_TIPO_MSISDN = "respTipoMsisdn";
|
||||
|
||||
public static final String RESP_TIPO_CLIENTE = "respTipoCliente";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public void save(HzGispRetrieveOut transientInstance) {
|
||||
log.debug("saving HzGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGispRetrieveOut persistentInstance) {
|
||||
log.debug("deleting HzGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispRetrieveOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzGispRetrieveOut instance with id: " + id);
|
||||
try {
|
||||
HzGispRetrieveOut instance = (HzGispRetrieveOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzGispRetrieveOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGispRetrieveOut instance) {
|
||||
log.debug("finding HzGispRetrieveOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzGispRetrieveOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGispRetrieveOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGispRetrieveOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByRespFlagTim(Object respFlagTim) {
|
||||
return findByProperty(RESP_FLAG_TIM, respFlagTim);
|
||||
}
|
||||
|
||||
public List findByRespCode(Object respCode) {
|
||||
return findByProperty(RESP_CODE, respCode);
|
||||
}
|
||||
|
||||
public List findByRespMsg(Object respMsg) {
|
||||
return findByProperty(RESP_MSG, respMsg);
|
||||
}
|
||||
|
||||
public List findByRespStatoFisso(Object respStatoFisso) {
|
||||
return findByProperty(RESP_STATO_FISSO, respStatoFisso);
|
||||
}
|
||||
|
||||
public List findByRespMsisdn(Object respMsisdn) {
|
||||
return findByProperty(RESP_MSISDN, respMsisdn);
|
||||
}
|
||||
|
||||
public List findByRespTipoMsisdn(Object respTipoMsisdn) {
|
||||
return findByProperty(RESP_TIPO_MSISDN, respTipoMsisdn);
|
||||
}
|
||||
|
||||
public List findByRespTipoCliente(Object respTipoCliente) {
|
||||
return findByProperty(RESP_TIPO_CLIENTE, respTipoCliente);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGispRetrieveOut instances");
|
||||
try {
|
||||
String queryString = "from HzGispRetrieveOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispRetrieveOut merge(HzGispRetrieveOut detachedInstance) {
|
||||
log.debug("merging HzGispRetrieveOut instance");
|
||||
try {
|
||||
HzGispRetrieveOut result = (HzGispRetrieveOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGispRetrieveOut instance) {
|
||||
log.debug("attaching dirty HzGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGispRetrieveOut instance) {
|
||||
log.debug("attaching clean HzGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,254 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzGispScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzGispScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzGispScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzGispScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzGispScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String DAC = "dac";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String CODICE_ERRORE = "codiceErrore";
|
||||
|
||||
public static final String SYSTEM_ID = "systemId";
|
||||
|
||||
public void save(HzGispScartiIn transientInstance) {
|
||||
log.debug("saving HzGispScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzGispScartiIn persistentInstance) {
|
||||
log.debug("deleting HzGispScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzGispScartiIn instance with id: " + id);
|
||||
try {
|
||||
HzGispScartiIn instance = (HzGispScartiIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzGispScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzGispScartiIn instance) {
|
||||
log.debug("finding HzGispScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzGispScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzGispScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzGispScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByDac(Object dac) {
|
||||
return findByProperty(DAC, dac);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findByCodiceErrore(Object codiceErrore) {
|
||||
return findByProperty(CODICE_ERRORE, codiceErrore);
|
||||
}
|
||||
|
||||
public List findBySystemId(Object systemId) {
|
||||
return findByProperty(SYSTEM_ID, systemId);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzGispScartiIn instances");
|
||||
try {
|
||||
String queryString = "from HzGispScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzGispScartiIn merge(HzGispScartiIn detachedInstance) {
|
||||
log.debug("merging HzGispScartiIn instance");
|
||||
try {
|
||||
HzGispScartiIn result = (HzGispScartiIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzGispScartiIn instance) {
|
||||
log.debug("attaching dirty HzGispScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzGispScartiIn instance) {
|
||||
log.debug("attaching clean HzGispScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMscIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMscIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMscIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMscInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMscInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_SYSTEM = "idSystem";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzMscIn transientInstance) {
|
||||
log.debug("saving HzMscIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMscIn persistentInstance) {
|
||||
log.debug("deleting HzMscIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzMscIn instance with id: " + id);
|
||||
try {
|
||||
HzMscIn instance = (HzMscIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMscIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMscIn instance) {
|
||||
log.debug("finding HzMscIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzMscIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMscIn instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMscIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdSystem(Object idSystem) {
|
||||
return findByProperty(ID_SYSTEM, idSystem);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMscIn instances");
|
||||
try {
|
||||
String queryString = "from HzMscIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscIn merge(HzMscIn detachedInstance) {
|
||||
log.debug("merging HzMscIn instance");
|
||||
try {
|
||||
HzMscIn result = (HzMscIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMscIn instance) {
|
||||
log.debug("attaching dirty HzMscIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMscIn instance) {
|
||||
log.debug("attaching clean HzMscIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMscOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMscOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMscOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMscOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMscOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String ESITO = "esito";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzMscOut transientInstance) {
|
||||
log.debug("saving HzMscOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMscOut persistentInstance) {
|
||||
log.debug("deleting HzMscOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzMscOut instance with id: " + id);
|
||||
try {
|
||||
HzMscOut instance = (HzMscOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMscOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMscOut instance) {
|
||||
log.debug("finding HzMscOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzMscOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMscOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMscOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByEsito(Object esito) {
|
||||
return findByProperty(ESITO, esito);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMscOut instances");
|
||||
try {
|
||||
String queryString = "from HzMscOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscOut merge(HzMscOut detachedInstance) {
|
||||
log.debug("merging HzMscOut instance");
|
||||
try {
|
||||
HzMscOut result = (HzMscOut) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMscOut instance) {
|
||||
log.debug("attaching dirty HzMscOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMscOut instance) {
|
||||
log.debug("attaching clean HzMscOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMscRecuperoOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMscRecuperoOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMscRecuperoOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMscRecuperoOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMscRecuperoOutDAO.class);
|
||||
|
||||
public void save(HzMscRecuperoOut transientInstance) {
|
||||
log.debug("saving HzMscRecuperoOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMscRecuperoOut persistentInstance) {
|
||||
log.debug("deleting HzMscRecuperoOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscRecuperoOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzMscRecuperoOut instance with id: " + id);
|
||||
try {
|
||||
HzMscRecuperoOut instance = (HzMscRecuperoOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMscRecuperoOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMscRecuperoOut instance) {
|
||||
log.debug("finding HzMscRecuperoOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzMscRecuperoOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMscRecuperoOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMscRecuperoOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMscRecuperoOut instances");
|
||||
try {
|
||||
String queryString = "from HzMscRecuperoOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscRecuperoOut merge(HzMscRecuperoOut detachedInstance) {
|
||||
log.debug("merging HzMscRecuperoOut instance");
|
||||
try {
|
||||
HzMscRecuperoOut result = (HzMscRecuperoOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMscRecuperoOut instance) {
|
||||
log.debug("attaching dirty HzMscRecuperoOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMscRecuperoOut instance) {
|
||||
log.debug("attaching clean HzMscRecuperoOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMscScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMscScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMscScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMscScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMscScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String SYSTEM_ID = "systemId";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String CODICE_ERRORE = "codiceErrore";
|
||||
|
||||
public void save(HzMscScartiIn transientInstance) {
|
||||
log.debug("saving HzMscScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMscScartiIn persistentInstance) {
|
||||
log.debug("deleting HzMscScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzMscScartiIn instance with id: " + id);
|
||||
try {
|
||||
HzMscScartiIn instance = (HzMscScartiIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMscScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMscScartiIn instance) {
|
||||
log.debug("finding HzMscScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzMscScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMscScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMscScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findBySystemId(Object systemId) {
|
||||
return findByProperty(SYSTEM_ID, systemId);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findByCodiceErrore(Object codiceErrore) {
|
||||
return findByProperty(CODICE_ERRORE, codiceErrore);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMscScartiIn instances");
|
||||
try {
|
||||
String queryString = "from HzMscScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMscScartiIn merge(HzMscScartiIn detachedInstance) {
|
||||
log.debug("merging HzMscScartiIn instance");
|
||||
try {
|
||||
HzMscScartiIn result = (HzMscScartiIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMscScartiIn instance) {
|
||||
log.debug("attaching dirty HzMscScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMscScartiIn instance) {
|
||||
log.debug("attaching clean HzMscScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,247 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMspIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMspIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMspIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMspInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMspInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_SYSTEM = "idSystem";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzMspIn transientInstance) {
|
||||
log.debug("saving HzMspIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMspIn persistentInstance) {
|
||||
log.debug("deleting HzMspIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzMspIn instance with id: " + id);
|
||||
try {
|
||||
HzMspIn instance = (HzMspIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMspIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMspIn instance) {
|
||||
log.debug("finding HzMspIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzMspIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMspIn instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMspIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdSystem(Object idSystem) {
|
||||
return findByProperty(ID_SYSTEM, idSystem);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMspIn instances");
|
||||
try {
|
||||
String queryString = "from HzMspIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspIn merge(HzMspIn detachedInstance) {
|
||||
log.debug("merging HzMspIn instance");
|
||||
try {
|
||||
HzMspIn result = (HzMspIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMspIn instance) {
|
||||
log.debug("attaching dirty HzMspIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMspIn instance) {
|
||||
log.debug("attaching clean HzMspIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMspOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMspOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMspOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMspOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMspOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String ESITO = "esito";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzMspOut transientInstance) {
|
||||
log.debug("saving HzMspOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMspOut persistentInstance) {
|
||||
log.debug("deleting HzMspOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzMspOut instance with id: " + id);
|
||||
try {
|
||||
HzMspOut instance = (HzMspOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMspOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMspOut instance) {
|
||||
log.debug("finding HzMspOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzMspOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMspOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMspOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByEsito(Object esito) {
|
||||
return findByProperty(ESITO, esito);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMspOut instances");
|
||||
try {
|
||||
String queryString = "from HzMspOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspOut merge(HzMspOut detachedInstance) {
|
||||
log.debug("merging HzMspOut instance");
|
||||
try {
|
||||
HzMspOut result = (HzMspOut) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMspOut instance) {
|
||||
log.debug("attaching dirty HzMspOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMspOut instance) {
|
||||
log.debug("attaching clean HzMspOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,212 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMspRecuperoOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMspRecuperoOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMspRecuperoOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMspRecuperoOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMspRecuperoOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String MESSAGE_ID = "messageId";
|
||||
|
||||
public static final String REDELIVERY_COUNT = "redeliveryCount";
|
||||
|
||||
public static final String STATO_MESSAGGIO = "statoMessaggio";
|
||||
|
||||
public static final String ECCEZIONE_AVVENUTA = "eccezioneAvvenuta";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String ESITO = "esito";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public void save(HzMspRecuperoOut transientInstance) {
|
||||
log.debug("saving HzMspRecuperoOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMspRecuperoOut persistentInstance) {
|
||||
log.debug("deleting HzMspRecuperoOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspRecuperoOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzMspRecuperoOut instance with id: " + id);
|
||||
try {
|
||||
HzMspRecuperoOut instance = (HzMspRecuperoOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMspRecuperoOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMspRecuperoOut instance) {
|
||||
log.debug("finding HzMspRecuperoOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzMspRecuperoOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMspRecuperoOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMspRecuperoOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByMessageId(Object messageId) {
|
||||
return findByProperty(MESSAGE_ID, messageId);
|
||||
}
|
||||
|
||||
public List findByRedeliveryCount(Object redeliveryCount) {
|
||||
return findByProperty(REDELIVERY_COUNT, redeliveryCount);
|
||||
}
|
||||
|
||||
public List findByStatoMessaggio(Object statoMessaggio) {
|
||||
return findByProperty(STATO_MESSAGGIO, statoMessaggio);
|
||||
}
|
||||
|
||||
public List findByEccezioneAvvenuta(Object eccezioneAvvenuta) {
|
||||
return findByProperty(ECCEZIONE_AVVENUTA, eccezioneAvvenuta);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByEsito(Object esito) {
|
||||
return findByProperty(ESITO, esito);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMspRecuperoOut instances");
|
||||
try {
|
||||
String queryString = "from HzMspRecuperoOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspRecuperoOut merge(HzMspRecuperoOut detachedInstance) {
|
||||
log.debug("merging HzMspRecuperoOut instance");
|
||||
try {
|
||||
HzMspRecuperoOut result = (HzMspRecuperoOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMspRecuperoOut instance) {
|
||||
log.debug("attaching dirty HzMspRecuperoOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMspRecuperoOut instance) {
|
||||
log.debug("attaching clean HzMspRecuperoOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,248 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzMspScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzMspScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzMspScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzMspScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzMspScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String SUBSYS = "subsys";
|
||||
|
||||
public static final String PREFISSO_DN = "prefissoDn";
|
||||
|
||||
public static final String NUMERO_DN = "numeroDn";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String DENOMINAZIONE_SOCIALE = "denominazioneSociale";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE = "codiceComune";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_SERVIZIO = "tipoServizio";
|
||||
|
||||
public static final String SYSTEM_ID = "systemId";
|
||||
|
||||
public static final String ID_REQ_INFOBUS = "idReqInfobus";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String CODICE_ERRORE = "codiceErrore";
|
||||
|
||||
public void save(HzMspScartiIn transientInstance) {
|
||||
log.debug("saving HzMspScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzMspScartiIn persistentInstance) {
|
||||
log.debug("deleting HzMspScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzMspScartiIn instance with id: " + id);
|
||||
try {
|
||||
HzMspScartiIn instance = (HzMspScartiIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzMspScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzMspScartiIn instance) {
|
||||
log.debug("finding HzMspScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzMspScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzMspScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzMspScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findBySubsys(Object subsys) {
|
||||
return findByProperty(SUBSYS, subsys);
|
||||
}
|
||||
|
||||
public List findByPrefissoDn(Object prefissoDn) {
|
||||
return findByProperty(PREFISSO_DN, prefissoDn);
|
||||
}
|
||||
|
||||
public List findByNumeroDn(Object numeroDn) {
|
||||
return findByProperty(NUMERO_DN, numeroDn);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByDenominazioneSociale(Object denominazioneSociale) {
|
||||
return findByProperty(DENOMINAZIONE_SOCIALE, denominazioneSociale);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComune(Object codiceComune) {
|
||||
return findByProperty(CODICE_COMUNE, codiceComune);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoServizio(Object tipoServizio) {
|
||||
return findByProperty(TIPO_SERVIZIO, tipoServizio);
|
||||
}
|
||||
|
||||
public List findBySystemId(Object systemId) {
|
||||
return findByProperty(SYSTEM_ID, systemId);
|
||||
}
|
||||
|
||||
public List findByIdReqInfobus(Object idReqInfobus) {
|
||||
return findByProperty(ID_REQ_INFOBUS, idReqInfobus);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findByCodiceErrore(Object codiceErrore) {
|
||||
return findByProperty(CODICE_ERRORE, codiceErrore);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzMspScartiIn instances");
|
||||
try {
|
||||
String queryString = "from HzMspScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzMspScartiIn merge(HzMspScartiIn detachedInstance) {
|
||||
log.debug("merging HzMspScartiIn instance");
|
||||
try {
|
||||
HzMspScartiIn result = (HzMspScartiIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzMspScartiIn instance) {
|
||||
log.debug("attaching dirty HzMspScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzMspScartiIn instance) {
|
||||
log.debug("attaching clean HzMspScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,201 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzPitagoraIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzPitagoraIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzPitagoraIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzPitagoraInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzPitagoraInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_ORDINE_RICHIEDENTE = "codiceOrdineRichiedente";
|
||||
|
||||
public static final String CODICE_OP_FORNITORE = "codiceOpFornitore";
|
||||
|
||||
public static final String CODICE_ORDINE_FORNITORE = "codiceOrdineFornitore";
|
||||
|
||||
public static final String TIPO_NOTIFICA = "tipoNotifica";
|
||||
|
||||
public static final String ID_RISORSA = "idRisorsa";
|
||||
|
||||
public static final String STATO_ORDINE = "statoOrdine";
|
||||
|
||||
public static final String ORA_ESP_ORDINE = "oraEspOrdine";
|
||||
|
||||
public static final String MOTIVO_RIFIUTO = "motivoRifiuto";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public void save(HzPitagoraIn transientInstance) {
|
||||
log.debug("saving HzPitagoraIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzPitagoraIn persistentInstance) {
|
||||
log.debug("deleting HzPitagoraIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzPitagoraIn instance with id: " + id);
|
||||
try {
|
||||
HzPitagoraIn instance = (HzPitagoraIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzPitagoraIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzPitagoraIn instance) {
|
||||
log.debug("finding HzPitagoraIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzPitagoraIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzPitagoraIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzPitagoraIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceOrdineRichiedente(Object codiceOrdineRichiedente) {
|
||||
return findByProperty(CODICE_ORDINE_RICHIEDENTE,
|
||||
codiceOrdineRichiedente);
|
||||
}
|
||||
|
||||
public List findByCodiceOpFornitore(Object codiceOpFornitore) {
|
||||
return findByProperty(CODICE_OP_FORNITORE, codiceOpFornitore);
|
||||
}
|
||||
|
||||
public List findByCodiceOrdineFornitore(Object codiceOrdineFornitore) {
|
||||
return findByProperty(CODICE_ORDINE_FORNITORE, codiceOrdineFornitore);
|
||||
}
|
||||
|
||||
public List findByTipoNotifica(Object tipoNotifica) {
|
||||
return findByProperty(TIPO_NOTIFICA, tipoNotifica);
|
||||
}
|
||||
|
||||
public List findByIdRisorsa(Object idRisorsa) {
|
||||
return findByProperty(ID_RISORSA, idRisorsa);
|
||||
}
|
||||
|
||||
public List findByStatoOrdine(Object statoOrdine) {
|
||||
return findByProperty(STATO_ORDINE, statoOrdine);
|
||||
}
|
||||
|
||||
public List findByOraEspOrdine(Object oraEspOrdine) {
|
||||
return findByProperty(ORA_ESP_ORDINE, oraEspOrdine);
|
||||
}
|
||||
|
||||
public List findByMotivoRifiuto(Object motivoRifiuto) {
|
||||
return findByProperty(MOTIVO_RIFIUTO, motivoRifiuto);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzPitagoraIn instances");
|
||||
try {
|
||||
String queryString = "from HzPitagoraIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraIn merge(HzPitagoraIn detachedInstance) {
|
||||
log.debug("merging HzPitagoraIn instance");
|
||||
try {
|
||||
HzPitagoraIn result = (HzPitagoraIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzPitagoraIn instance) {
|
||||
log.debug("attaching dirty HzPitagoraIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzPitagoraIn instance) {
|
||||
log.debug("attaching clean HzPitagoraIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,218 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzPitagoraOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzPitagoraOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzPitagoraOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzPitagoraOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzPitagoraOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String TIPO_ORDINE = "tipoOrdine";
|
||||
|
||||
public static final String DETTAGLIO_TIPO_ORDINE = "dettaglioTipoOrdine";
|
||||
|
||||
public static final String DIRECTORY_NUMBER = "directoryNumber";
|
||||
|
||||
public static final String ROUTING_NUMBER = "routingNumber";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String CF_PARTITA_IVA = "cfPartitaIva";
|
||||
|
||||
public static final String VIA = "via";
|
||||
|
||||
public static final String LOCALITA = "localita";
|
||||
|
||||
public static final String NUMERO_CIVICO = "numeroCivico";
|
||||
|
||||
public static final String CODICE_COMUNE_CLIENTE = "codiceComuneCliente";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public void save(HzPitagoraOut transientInstance) {
|
||||
log.debug("saving HzPitagoraOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzPitagoraOut persistentInstance) {
|
||||
log.debug("deleting HzPitagoraOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraOut findById(java.lang.Long id) {
|
||||
log.debug("getting HzPitagoraOut instance with id: " + id);
|
||||
try {
|
||||
HzPitagoraOut instance = (HzPitagoraOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzPitagoraOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzPitagoraOut instance) {
|
||||
log.debug("finding HzPitagoraOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzPitagoraOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzPitagoraOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzPitagoraOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByTipoOrdine(Object tipoOrdine) {
|
||||
return findByProperty(TIPO_ORDINE, tipoOrdine);
|
||||
}
|
||||
|
||||
public List findByDettaglioTipoOrdine(Object dettaglioTipoOrdine) {
|
||||
return findByProperty(DETTAGLIO_TIPO_ORDINE, dettaglioTipoOrdine);
|
||||
}
|
||||
|
||||
public List findByDirectoryNumber(Object directoryNumber) {
|
||||
return findByProperty(DIRECTORY_NUMBER, directoryNumber);
|
||||
}
|
||||
|
||||
public List findByRoutingNumber(Object routingNumber) {
|
||||
return findByProperty(ROUTING_NUMBER, routingNumber);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByCfPartitaIva(Object cfPartitaIva) {
|
||||
return findByProperty(CF_PARTITA_IVA, cfPartitaIva);
|
||||
}
|
||||
|
||||
public List findByVia(Object via) {
|
||||
return findByProperty(VIA, via);
|
||||
}
|
||||
|
||||
public List findByLocalita(Object localita) {
|
||||
return findByProperty(LOCALITA, localita);
|
||||
}
|
||||
|
||||
public List findByNumeroCivico(Object numeroCivico) {
|
||||
return findByProperty(NUMERO_CIVICO, numeroCivico);
|
||||
}
|
||||
|
||||
public List findByCodiceComuneCliente(Object codiceComuneCliente) {
|
||||
return findByProperty(CODICE_COMUNE_CLIENTE, codiceComuneCliente);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzPitagoraOut instances");
|
||||
try {
|
||||
String queryString = "from HzPitagoraOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraOut merge(HzPitagoraOut detachedInstance) {
|
||||
log.debug("merging HzPitagoraOut instance");
|
||||
try {
|
||||
HzPitagoraOut result = (HzPitagoraOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzPitagoraOut instance) {
|
||||
log.debug("attaching dirty HzPitagoraOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzPitagoraOut instance) {
|
||||
log.debug("attaching clean HzPitagoraOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzPitagoraScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzPitagoraScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzPitagoraScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzPitagoraScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzPitagoraScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String CAMPO_ERRATO = "campoErrato";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public void save(HzPitagoraScartiIn transientInstance) {
|
||||
log.debug("saving HzPitagoraScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzPitagoraScartiIn persistentInstance) {
|
||||
log.debug("deleting HzPitagoraScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting HzPitagoraScartiIn instance with id: " + id);
|
||||
try {
|
||||
HzPitagoraScartiIn instance = (HzPitagoraScartiIn) getSession()
|
||||
.get("it.valueteam.dao.db.hb.HzPitagoraScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzPitagoraScartiIn instance) {
|
||||
log.debug("finding HzPitagoraScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzPitagoraScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzPitagoraScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzPitagoraScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByCampoErrato(Object campoErrato) {
|
||||
return findByProperty(CAMPO_ERRATO, campoErrato);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzPitagoraScartiIn instances");
|
||||
try {
|
||||
String queryString = "from HzPitagoraScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzPitagoraScartiIn merge(HzPitagoraScartiIn detachedInstance) {
|
||||
log.debug("merging HzPitagoraScartiIn instance");
|
||||
try {
|
||||
HzPitagoraScartiIn result = (HzPitagoraScartiIn) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzPitagoraScartiIn instance) {
|
||||
log.debug("attaching dirty HzPitagoraScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzPitagoraScartiIn instance) {
|
||||
log.debug("attaching clean HzPitagoraScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,153 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzRgnDistrettoAgw;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzRgnDistrettoAgw.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzRgnDistrettoAgw
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzRgnDistrettoAgwDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzRgnDistrettoAgwDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DISTRETTO = "distretto";
|
||||
|
||||
public static final String AGW = "agw";
|
||||
|
||||
public static final String RGN = "rgn";
|
||||
|
||||
public void save(HzRgnDistrettoAgw transientInstance) {
|
||||
log.debug("saving HzRgnDistrettoAgw instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzRgnDistrettoAgw persistentInstance) {
|
||||
log.debug("deleting HzRgnDistrettoAgw instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzRgnDistrettoAgw findById(java.lang.Long id) {
|
||||
log.debug("getting HzRgnDistrettoAgw instance with id: " + id);
|
||||
try {
|
||||
HzRgnDistrettoAgw instance = (HzRgnDistrettoAgw) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzRgnDistrettoAgw", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzRgnDistrettoAgw instance) {
|
||||
log.debug("finding HzRgnDistrettoAgw instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.HzRgnDistrettoAgw").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzRgnDistrettoAgw instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzRgnDistrettoAgw as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDistretto(Object distretto) {
|
||||
return findByProperty(DISTRETTO, distretto);
|
||||
}
|
||||
|
||||
public List findByAgw(Object agw) {
|
||||
return findByProperty(AGW, agw);
|
||||
}
|
||||
|
||||
public List findByRgn(Object rgn) {
|
||||
return findByProperty(RGN, rgn);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzRgnDistrettoAgw instances");
|
||||
try {
|
||||
String queryString = "from HzRgnDistrettoAgw";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzRgnDistrettoAgw merge(HzRgnDistrettoAgw detachedInstance) {
|
||||
log.debug("merging HzRgnDistrettoAgw instance");
|
||||
try {
|
||||
HzRgnDistrettoAgw result = (HzRgnDistrettoAgw) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzRgnDistrettoAgw instance) {
|
||||
log.debug("attaching dirty HzRgnDistrettoAgw instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzRgnDistrettoAgw instance) {
|
||||
log.debug("attaching clean HzRgnDistrettoAgw instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,133 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzSimbaOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzSimbaOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzSimbaOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzSimbaOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(HzSimbaOutDAO.class);
|
||||
|
||||
public void save(HzSimbaOut transientInstance) {
|
||||
log.debug("saving HzSimbaOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzSimbaOut persistentInstance) {
|
||||
log.debug("deleting HzSimbaOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzSimbaOut findById( java.lang.Long id) {
|
||||
log.debug("getting HzSimbaOut instance with id: " + id);
|
||||
try {
|
||||
HzSimbaOut instance = (HzSimbaOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.HzSimbaOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzSimbaOut instance) {
|
||||
log.debug("finding HzSimbaOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzSimbaOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzSimbaOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzSimbaOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzSimbaOut instances");
|
||||
try {
|
||||
String queryString = "from HzSimbaOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzSimbaOut merge(HzSimbaOut detachedInstance) {
|
||||
log.debug("merging HzSimbaOut instance");
|
||||
try {
|
||||
HzSimbaOut result = (HzSimbaOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzSimbaOut instance) {
|
||||
log.debug("attaching dirty HzSimbaOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzSimbaOut instance) {
|
||||
log.debug("attaching clean HzSimbaOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,134 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzStoricoRichCessOlo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzStoricoRichCessOlo.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzStoricoRichCessOlo
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzStoricoRichCessOloDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzStoricoRichCessOloDAO.class);
|
||||
|
||||
public void save(HzStoricoRichCessOlo transientInstance) {
|
||||
log.debug("saving HzStoricoRichCessOlo instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzStoricoRichCessOlo persistentInstance) {
|
||||
log.debug("deleting HzStoricoRichCessOlo instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzStoricoRichCessOlo findById(java.lang.Long id) {
|
||||
log.debug("getting HzStoricoRichCessOlo instance with id: " + id);
|
||||
try {
|
||||
HzStoricoRichCessOlo instance = (HzStoricoRichCessOlo) getSession()
|
||||
.get("it.valueteam.dao.db.hb.HzStoricoRichCessOlo", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzStoricoRichCessOlo instance) {
|
||||
log.debug("finding HzStoricoRichCessOlo instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzStoricoRichCessOlo").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzStoricoRichCessOlo instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzStoricoRichCessOlo as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzStoricoRichCessOlo instances");
|
||||
try {
|
||||
String queryString = "from HzStoricoRichCessOlo";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzStoricoRichCessOlo merge(HzStoricoRichCessOlo detachedInstance) {
|
||||
log.debug("merging HzStoricoRichCessOlo instance");
|
||||
try {
|
||||
HzStoricoRichCessOlo result = (HzStoricoRichCessOlo) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzStoricoRichCessOlo instance) {
|
||||
log.debug("attaching dirty HzStoricoRichCessOlo instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzStoricoRichCessOlo instance) {
|
||||
log.debug("attaching clean HzStoricoRichCessOlo instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,165 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.HzStoricoRichiesta;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class HzStoricoRichiesta.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.HzStoricoRichiesta
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class HzStoricoRichiestaDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(HzStoricoRichiestaDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String STATO_DA = "statoDa";
|
||||
|
||||
public static final String STATO_A = "statoA";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String _IO = "IO";
|
||||
|
||||
public void save(HzStoricoRichiesta transientInstance) {
|
||||
log.debug("saving HzStoricoRichiesta instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(HzStoricoRichiesta persistentInstance) {
|
||||
log.debug("deleting HzStoricoRichiesta instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzStoricoRichiesta findById(java.lang.Long id) {
|
||||
log.debug("getting HzStoricoRichiesta instance with id: " + id);
|
||||
try {
|
||||
HzStoricoRichiesta instance = (HzStoricoRichiesta) getSession()
|
||||
.get("it.valueteam.dao.db.hb.HzStoricoRichiesta", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(HzStoricoRichiesta instance) {
|
||||
log.debug("finding HzStoricoRichiesta instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.HzStoricoRichiesta").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding HzStoricoRichiesta instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from HzStoricoRichiesta as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByStatoDa(Object statoDa) {
|
||||
return findByProperty(STATO_DA, statoDa);
|
||||
}
|
||||
|
||||
public List findByStatoA(Object statoA) {
|
||||
return findByProperty(STATO_A, statoA);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByIO(Object IO) {
|
||||
return findByProperty(_IO, IO);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all HzStoricoRichiesta instances");
|
||||
try {
|
||||
String queryString = "from HzStoricoRichiesta";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public HzStoricoRichiesta merge(HzStoricoRichiesta detachedInstance) {
|
||||
log.debug("merging HzStoricoRichiesta instance");
|
||||
try {
|
||||
HzStoricoRichiesta result = (HzStoricoRichiesta) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(HzStoricoRichiesta instance) {
|
||||
log.debug("attaching dirty HzStoricoRichiesta instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(HzStoricoRichiesta instance) {
|
||||
log.debug("attaching clean HzStoricoRichiesta instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import org.hibernate.Session;
|
||||
|
||||
|
||||
/**
|
||||
* Data access interface for domain model
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
public interface IBaseHibernateDAO {
|
||||
public Session getSession();
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagCondizioneDup;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagCondizioneDup.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagCondizioneDup
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagCondizioneDupDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAnagCondizioneDupDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpAnagCondizioneDup transientInstance) {
|
||||
log.debug("saving MnpAnagCondizioneDup instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagCondizioneDup persistentInstance) {
|
||||
log.debug("deleting MnpAnagCondizioneDup instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagCondizioneDup findById(java.lang.Long id) {
|
||||
log.debug("getting MnpAnagCondizioneDup instance with id: " + id);
|
||||
try {
|
||||
MnpAnagCondizioneDup instance = (MnpAnagCondizioneDup) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAnagCondizioneDup", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagCondizioneDup instance) {
|
||||
log.debug("finding MnpAnagCondizioneDup instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagCondizioneDup").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagCondizioneDup instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagCondizioneDup as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagCondizioneDup instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagCondizioneDup";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagCondizioneDup merge(MnpAnagCondizioneDup detachedInstance) {
|
||||
log.debug("merging MnpAnagCondizioneDup instance");
|
||||
try {
|
||||
MnpAnagCondizioneDup result = (MnpAnagCondizioneDup) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagCondizioneDup instance) {
|
||||
log.debug("attaching dirty MnpAnagCondizioneDup instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagCondizioneDup instance) {
|
||||
log.debug("attaching clean MnpAnagCondizioneDup instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagDettModRecipient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagDettModRecipient.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagDettModRecipient
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagDettModRecipientDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAnagDettModRecipientDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public static final String TIPO_CAMPO = "tipoCampo";
|
||||
|
||||
public void save(MnpAnagDettModRecipient transientInstance) {
|
||||
log.debug("saving MnpAnagDettModRecipient instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagDettModRecipient persistentInstance) {
|
||||
log.debug("deleting MnpAnagDettModRecipient instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagDettModRecipient findById(java.lang.Long id) {
|
||||
log.debug("getting MnpAnagDettModRecipient instance with id: " + id);
|
||||
try {
|
||||
MnpAnagDettModRecipient instance = (MnpAnagDettModRecipient) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAnagDettModRecipient", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagDettModRecipient instance) {
|
||||
log.debug("finding MnpAnagDettModRecipient instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagDettModRecipient").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagDettModRecipient instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagDettModRecipient as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findByTipoCampo(Object tipoCampo) {
|
||||
return findByProperty(TIPO_CAMPO, tipoCampo);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagDettModRecipient instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagDettModRecipient";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagDettModRecipient merge(
|
||||
MnpAnagDettModRecipient detachedInstance) {
|
||||
log.debug("merging MnpAnagDettModRecipient instance");
|
||||
try {
|
||||
MnpAnagDettModRecipient result = (MnpAnagDettModRecipient) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagDettModRecipient instance) {
|
||||
log.debug("attaching dirty MnpAnagDettModRecipient instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagDettModRecipient instance) {
|
||||
log.debug("attaching clean MnpAnagDettModRecipient instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,148 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagDettModificheDonor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagDettModificheDonor.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagDettModificheDonor
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagDettModificheDonorDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAnagDettModificheDonorDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public static final String TIPO_CAMPO = "tipoCampo";
|
||||
|
||||
public void save(MnpAnagDettModificheDonor transientInstance) {
|
||||
log.debug("saving MnpAnagDettModificheDonor instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagDettModificheDonor persistentInstance) {
|
||||
log.debug("deleting MnpAnagDettModificheDonor instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagDettModificheDonor findById(java.lang.Long id) {
|
||||
log.debug("getting MnpAnagDettModificheDonor instance with id: " + id);
|
||||
try {
|
||||
MnpAnagDettModificheDonor instance = (MnpAnagDettModificheDonor) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAnagDettModificheDonor", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagDettModificheDonor instance) {
|
||||
log.debug("finding MnpAnagDettModificheDonor instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagDettModificheDonor").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagDettModificheDonor instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagDettModificheDonor as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findByTipoCampo(Object tipoCampo) {
|
||||
return findByProperty(TIPO_CAMPO, tipoCampo);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagDettModificheDonor instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagDettModificheDonor";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagDettModificheDonor merge(
|
||||
MnpAnagDettModificheDonor detachedInstance) {
|
||||
log.debug("merging MnpAnagDettModificheDonor instance");
|
||||
try {
|
||||
MnpAnagDettModificheDonor result = (MnpAnagDettModificheDonor) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagDettModificheDonor instance) {
|
||||
log.debug("attaching dirty MnpAnagDettModificheDonor instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagDettModificheDonor instance) {
|
||||
log.debug("attaching clean MnpAnagDettModificheDonor instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,146 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagraficaLog;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagraficaLog.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagraficaLog
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagraficaLogDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpAnagraficaLogDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String SEVERITA = "severita";
|
||||
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpAnagraficaLog transientInstance) {
|
||||
log.debug("saving MnpAnagraficaLog instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagraficaLog persistentInstance) {
|
||||
log.debug("deleting MnpAnagraficaLog instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaLog findById(java.lang.String id) {
|
||||
log.debug("getting MnpAnagraficaLog instance with id: " + id);
|
||||
try {
|
||||
MnpAnagraficaLog instance = (MnpAnagraficaLog) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaLog", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagraficaLog instance) {
|
||||
log.debug("finding MnpAnagraficaLog instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaLog").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagraficaLog instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaLog as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findBySeverita(Object severita) {
|
||||
return findByProperty(SEVERITA, severita);
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagraficaLog instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaLog";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaLog merge(MnpAnagraficaLog detachedInstance) {
|
||||
log.debug("merging MnpAnagraficaLog instance");
|
||||
try {
|
||||
MnpAnagraficaLog result = (MnpAnagraficaLog) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagraficaLog instance) {
|
||||
log.debug("attaching dirty MnpAnagraficaLog instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagraficaLog instance) {
|
||||
log.debug("attaching clean MnpAnagraficaLog instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
// Generated 14-mar-2009 17.07.46 by Hibernate Tools Customizzato per MNP da C.A. 3.2.0.CR1
|
||||
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagraficaOperatori;
|
||||
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.Example;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
public class MnpAnagraficaOperatoriDAO extends BaseHibernateTestDAO{
|
||||
|
||||
protected static final Log log = LogFactory.getLog(MnpAnagraficaOperatoriDAO.class);
|
||||
|
||||
public static final String HB_PROP_ID_OPERATORE = "idOperatore";
|
||||
public static final String HB_PROP_TIPO_OPERATORE = "tipoOperatore";
|
||||
public static final String HB_PROP_GESTORE_AOM = "gestoreAom";
|
||||
public static final String HB_PROP_ID_AMMINISTRATIVO = "idAmministrativo";
|
||||
|
||||
|
||||
public void save(MnpAnagraficaOperatori transientInstance) {
|
||||
log.debug("saving MnpAnagraficaOperatori instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagraficaOperatori instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "select model from MnpAnagraficaOperatori 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 MnpAnagraficaOperatori ");
|
||||
try {
|
||||
String queryString = " from MnpAnagraficaOperatori";
|
||||
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(MnpAnagraficaOperatori instance) {
|
||||
log.debug("attaching dirty MnpAnagraficaOperatori instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagraficaOperatori instance) {
|
||||
log.debug("attaching clean MnpAnagraficaOperatori instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagraficaOperatori persistentInstance) {
|
||||
log.debug("deleting MnpAnagraficaOperatori instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaOperatori merge(MnpAnagraficaOperatori detachedInstance) {
|
||||
log.debug("merging MnpAnagraficaOperatori instance");
|
||||
try {
|
||||
MnpAnagraficaOperatori result = (MnpAnagraficaOperatori) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCriteria(List criterion) {
|
||||
log.debug("finding MnpAnagraficaOperatori instance by criteria");
|
||||
try {
|
||||
Criteria crit = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpAnagraficaOperatori");
|
||||
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 MnpAnagraficaOperatori findById( java.lang.String id) {
|
||||
log.debug("getting MnpAnagraficaOperatori instance with id: " + id);
|
||||
try {
|
||||
MnpAnagraficaOperatori instance = (MnpAnagraficaOperatori) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.MnpAnagraficaOperatori", 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 findByExample(MnpAnagraficaOperatori instance) {
|
||||
log.debug("finding MnpAnagraficaOperatori instance by example");
|
||||
try {
|
||||
List results = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpAnagraficaOperatori")
|
||||
.add(Example.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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,140 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagraficaOt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagraficaOt.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagraficaOt
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagraficaOtDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpAnagraficaOtDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpAnagraficaOt transientInstance) {
|
||||
log.debug("saving MnpAnagraficaOt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagraficaOt persistentInstance) {
|
||||
log.debug("deleting MnpAnagraficaOt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaOt findById(java.lang.String id) {
|
||||
log.debug("getting MnpAnagraficaOt instance with id: " + id);
|
||||
try {
|
||||
MnpAnagraficaOt instance = (MnpAnagraficaOt) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaOt", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagraficaOt instance) {
|
||||
log.debug("finding MnpAnagraficaOt instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaOt").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagraficaOt instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaOt as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagraficaOt instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaOt";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaOt merge(MnpAnagraficaOt detachedInstance) {
|
||||
log.debug("merging MnpAnagraficaOt instance");
|
||||
try {
|
||||
MnpAnagraficaOt result = (MnpAnagraficaOt) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagraficaOt instance) {
|
||||
log.debug("attaching dirty MnpAnagraficaOt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagraficaOt instance) {
|
||||
log.debug("attaching clean MnpAnagraficaOt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagraficaProcesso;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagraficaProcesso.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagraficaProcesso
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagraficaProcessoDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAnagraficaProcessoDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_PROCESSO = "nomeProcesso";
|
||||
|
||||
public void save(MnpAnagraficaProcesso transientInstance) {
|
||||
log.debug("saving MnpAnagraficaProcesso instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagraficaProcesso persistentInstance) {
|
||||
log.debug("deleting MnpAnagraficaProcesso instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaProcesso findById(java.lang.String id) {
|
||||
log.debug("getting MnpAnagraficaProcesso instance with id: " + id);
|
||||
try {
|
||||
MnpAnagraficaProcesso instance = (MnpAnagraficaProcesso) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAnagraficaProcesso", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagraficaProcesso instance) {
|
||||
log.debug("finding MnpAnagraficaProcesso instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaProcesso").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagraficaProcesso instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaProcesso as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeProcesso(Object nomeProcesso) {
|
||||
return findByProperty(NOME_PROCESSO, nomeProcesso);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagraficaProcesso instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaProcesso";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaProcesso merge(MnpAnagraficaProcesso detachedInstance) {
|
||||
log.debug("merging MnpAnagraficaProcesso instance");
|
||||
try {
|
||||
MnpAnagraficaProcesso result = (MnpAnagraficaProcesso) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagraficaProcesso instance) {
|
||||
log.debug("attaching dirty MnpAnagraficaProcesso instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagraficaProcesso instance) {
|
||||
log.debug("attaching clean MnpAnagraficaProcesso instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAnagraficaStatoRichNot;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAnagraficaStatoRichNot.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAnagraficaStatoRichNot
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAnagraficaStatoRichNotDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAnagraficaStatoRichNotDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpAnagraficaStatoRichNot transientInstance) {
|
||||
log.debug("saving MnpAnagraficaStatoRichNot instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAnagraficaStatoRichNot persistentInstance) {
|
||||
log.debug("deleting MnpAnagraficaStatoRichNot instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaStatoRichNot findById(java.lang.Long id) {
|
||||
log.debug("getting MnpAnagraficaStatoRichNot instance with id: " + id);
|
||||
try {
|
||||
MnpAnagraficaStatoRichNot instance = (MnpAnagraficaStatoRichNot) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAnagraficaStatoRichNot", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAnagraficaStatoRichNot instance) {
|
||||
log.debug("finding MnpAnagraficaStatoRichNot instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpAnagraficaStatoRichNot").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAnagraficaStatoRichNot instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaStatoRichNot as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAnagraficaStatoRichNot instances");
|
||||
try {
|
||||
String queryString = "from MnpAnagraficaStatoRichNot";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAnagraficaStatoRichNot merge(
|
||||
MnpAnagraficaStatoRichNot detachedInstance) {
|
||||
log.debug("merging MnpAnagraficaStatoRichNot instance");
|
||||
try {
|
||||
MnpAnagraficaStatoRichNot result = (MnpAnagraficaStatoRichNot) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAnagraficaStatoRichNot instance) {
|
||||
log.debug("attaching dirty MnpAnagraficaStatoRichNot instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAnagraficaStatoRichNot instance) {
|
||||
log.debug("attaching clean MnpAnagraficaStatoRichNot instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,238 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpAspCrmCessazioneOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpAspCrmCessazioneOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpAspCrmCessazioneOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpAspCrmCessazioneOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpAspCrmCessazioneOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String BUSINESS_CONSUMER = "businessConsumer";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String ROUTING_NUMBER = "routingNumber";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String ABBONATO_PREPAGATO = "abbonatoPrepagato";
|
||||
|
||||
public static final String COD_OLO = "codOlo";
|
||||
|
||||
public static final String CODICE_ANALOGICO_DIGITALE = "codiceAnalogicoDigitale";
|
||||
|
||||
public static final String SIST_COMP = "sistComp";
|
||||
|
||||
public static final String NOME_OT = "nomeOt";
|
||||
|
||||
public static final String MSISDN_ADD1 = "msisdnAdd1";
|
||||
|
||||
public static final String MSISDN_ADD2 = "msisdnAdd2";
|
||||
|
||||
public static final String MSISDN_BASE = "msisdnBase";
|
||||
|
||||
public static final String DA_BONIFICARE = "daBonificare";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public void save(MnpAspCrmCessazioneOut transientInstance) {
|
||||
log.debug("saving MnpAspCrmCessazioneOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpAspCrmCessazioneOut persistentInstance) {
|
||||
log.debug("deleting MnpAspCrmCessazioneOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAspCrmCessazioneOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpAspCrmCessazioneOut instance with id: " + id);
|
||||
try {
|
||||
MnpAspCrmCessazioneOut instance = (MnpAspCrmCessazioneOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpAspCrmCessazioneOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpAspCrmCessazioneOut instance) {
|
||||
log.debug("finding MnpAspCrmCessazioneOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpAspCrmCessazioneOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpAspCrmCessazioneOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpAspCrmCessazioneOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByBusinessConsumer(Object businessConsumer) {
|
||||
return findByProperty(BUSINESS_CONSUMER, businessConsumer);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByRoutingNumber(Object routingNumber) {
|
||||
return findByProperty(ROUTING_NUMBER, routingNumber);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByAbbonatoPrepagato(Object abbonatoPrepagato) {
|
||||
return findByProperty(ABBONATO_PREPAGATO, abbonatoPrepagato);
|
||||
}
|
||||
|
||||
public List findByCodOlo(Object codOlo) {
|
||||
return findByProperty(COD_OLO, codOlo);
|
||||
}
|
||||
|
||||
public List findByCodiceAnalogicoDigitale(Object codiceAnalogicoDigitale) {
|
||||
return findByProperty(CODICE_ANALOGICO_DIGITALE,
|
||||
codiceAnalogicoDigitale);
|
||||
}
|
||||
|
||||
public List findBySistComp(Object sistComp) {
|
||||
return findByProperty(SIST_COMP, sistComp);
|
||||
}
|
||||
|
||||
public List findByNomeOt(Object nomeOt) {
|
||||
return findByProperty(NOME_OT, nomeOt);
|
||||
}
|
||||
|
||||
public List findByMsisdnAdd1(Object msisdnAdd1) {
|
||||
return findByProperty(MSISDN_ADD1, msisdnAdd1);
|
||||
}
|
||||
|
||||
public List findByMsisdnAdd2(Object msisdnAdd2) {
|
||||
return findByProperty(MSISDN_ADD2, msisdnAdd2);
|
||||
}
|
||||
|
||||
public List findByMsisdnBase(Object msisdnBase) {
|
||||
return findByProperty(MSISDN_BASE, msisdnBase);
|
||||
}
|
||||
|
||||
public List findByDaBonificare(Object daBonificare) {
|
||||
return findByProperty(DA_BONIFICARE, daBonificare);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpAspCrmCessazioneOut instances");
|
||||
try {
|
||||
String queryString = "from MnpAspCrmCessazioneOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpAspCrmCessazioneOut merge(MnpAspCrmCessazioneOut detachedInstance) {
|
||||
log.debug("merging MnpAspCrmCessazioneOut instance");
|
||||
try {
|
||||
MnpAspCrmCessazioneOut result = (MnpAspCrmCessazioneOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpAspCrmCessazioneOut instance) {
|
||||
log.debug("attaching dirty MnpAspCrmCessazioneOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpAspCrmCessazioneOut instance) {
|
||||
log.debug("attaching clean MnpAspCrmCessazioneOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,326 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpBitInRec;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpBitInRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpBitInRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpBitInRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpBitInRecDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String COD_SERVICE_ORDER = "codServiceOrder";
|
||||
|
||||
public static final String DONATING_COD_OP = "donatingCodOp";
|
||||
|
||||
public static final String COD_PRE_POST = "codPrePost";
|
||||
|
||||
public static final String PREFISSO_TIM = "prefissoTim";
|
||||
|
||||
public static final String NUMERO_TIM = "numeroTim";
|
||||
|
||||
public static final String PREFISSO_OLO = "prefissoOlo";
|
||||
|
||||
public static final String NUMERO_OLO = "numeroOlo";
|
||||
|
||||
public static final String ICCID_OLO = "iccidOlo";
|
||||
|
||||
public static final String COD_FIS_CLI_OLO = "codFisCliOlo";
|
||||
|
||||
public static final String TIPO_DOC_IDENTITA = "tipoDocIdentita";
|
||||
|
||||
public static final String NUM_DOC_IDENTITA = "numDocIdentita";
|
||||
|
||||
public static final String COD_CONTRATTO = "codContratto";
|
||||
|
||||
public static final String OT_COD = "otCod";
|
||||
|
||||
public static final String NOME_CLIENTE_PF = "nomeClientePf";
|
||||
|
||||
public static final String COGNOME_CLIENTE_PF = "cognomeClientePf";
|
||||
|
||||
public static final String DENOMINAZIONE_PG = "denominazionePg";
|
||||
|
||||
public static final String IMSI_TIM = "imsiTim";
|
||||
|
||||
public static final String COD_RICHIESTA = "codRichiesta";
|
||||
|
||||
public static final String ASSET_USES = "assetUses";
|
||||
|
||||
public static final String PROGETTO_AD_HOC = "progettoAdHoc";
|
||||
|
||||
public static final String ID_RICHIESTA_INFOBUS = "idRichiestaInfobus";
|
||||
|
||||
public static final String TIPO_SPEDIZIONE = "tipoSpedizione";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String COD_PROFILO_TARIFFARIO = "codProfiloTariffario";
|
||||
|
||||
public static final String DESC_PROFILO_TARIFFARIO = "descProfiloTariffario";
|
||||
|
||||
public static final String COD_OFFERTA = "codOfferta";
|
||||
|
||||
public static final String DESC_OFFERTA = "descOfferta";
|
||||
|
||||
public static final String COD_ACCORDO = "codAccordo";
|
||||
|
||||
public static final String DESC_ACCORDO = "descAccordo";
|
||||
|
||||
public static final String DESCANALE_VENDITA = "descanaleVendita";
|
||||
|
||||
public void save(MnpBitInRec transientInstance) {
|
||||
log.debug("saving MnpBitInRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpBitInRec persistentInstance) {
|
||||
log.debug("deleting MnpBitInRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitInRec findById(java.lang.Long id) {
|
||||
log.debug("getting MnpBitInRec instance with id: " + id);
|
||||
try {
|
||||
MnpBitInRec instance = (MnpBitInRec) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpBitInRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpBitInRec instance) {
|
||||
log.debug("finding MnpBitInRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpBitInRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpBitInRec instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpBitInRec as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByCodServiceOrder(Object codServiceOrder) {
|
||||
return findByProperty(COD_SERVICE_ORDER, codServiceOrder);
|
||||
}
|
||||
|
||||
public List findByDonatingCodOp(Object donatingCodOp) {
|
||||
return findByProperty(DONATING_COD_OP, donatingCodOp);
|
||||
}
|
||||
|
||||
public List findByCodPrePost(Object codPrePost) {
|
||||
return findByProperty(COD_PRE_POST, codPrePost);
|
||||
}
|
||||
|
||||
public List findByPrefissoTim(Object prefissoTim) {
|
||||
return findByProperty(PREFISSO_TIM, prefissoTim);
|
||||
}
|
||||
|
||||
public List findByNumeroTim(Object numeroTim) {
|
||||
return findByProperty(NUMERO_TIM, numeroTim);
|
||||
}
|
||||
|
||||
public List findByPrefissoOlo(Object prefissoOlo) {
|
||||
return findByProperty(PREFISSO_OLO, prefissoOlo);
|
||||
}
|
||||
|
||||
public List findByNumeroOlo(Object numeroOlo) {
|
||||
return findByProperty(NUMERO_OLO, numeroOlo);
|
||||
}
|
||||
|
||||
public List findByIccidOlo(Object iccidOlo) {
|
||||
return findByProperty(ICCID_OLO, iccidOlo);
|
||||
}
|
||||
|
||||
public List findByCodFisCliOlo(Object codFisCliOlo) {
|
||||
return findByProperty(COD_FIS_CLI_OLO, codFisCliOlo);
|
||||
}
|
||||
|
||||
public List findByTipoDocIdentita(Object tipoDocIdentita) {
|
||||
return findByProperty(TIPO_DOC_IDENTITA, tipoDocIdentita);
|
||||
}
|
||||
|
||||
public List findByNumDocIdentita(Object numDocIdentita) {
|
||||
return findByProperty(NUM_DOC_IDENTITA, numDocIdentita);
|
||||
}
|
||||
|
||||
public List findByCodContratto(Object codContratto) {
|
||||
return findByProperty(COD_CONTRATTO, codContratto);
|
||||
}
|
||||
|
||||
public List findByOtCod(Object otCod) {
|
||||
return findByProperty(OT_COD, otCod);
|
||||
}
|
||||
|
||||
public List findByNomeClientePf(Object nomeClientePf) {
|
||||
return findByProperty(NOME_CLIENTE_PF, nomeClientePf);
|
||||
}
|
||||
|
||||
public List findByCognomeClientePf(Object cognomeClientePf) {
|
||||
return findByProperty(COGNOME_CLIENTE_PF, cognomeClientePf);
|
||||
}
|
||||
|
||||
public List findByDenominazionePg(Object denominazionePg) {
|
||||
return findByProperty(DENOMINAZIONE_PG, denominazionePg);
|
||||
}
|
||||
|
||||
public List findByImsiTim(Object imsiTim) {
|
||||
return findByProperty(IMSI_TIM, imsiTim);
|
||||
}
|
||||
|
||||
public List findByCodRichiesta(Object codRichiesta) {
|
||||
return findByProperty(COD_RICHIESTA, codRichiesta);
|
||||
}
|
||||
|
||||
public List findByAssetUses(Object assetUses) {
|
||||
return findByProperty(ASSET_USES, assetUses);
|
||||
}
|
||||
|
||||
public List findByProgettoAdHoc(Object progettoAdHoc) {
|
||||
return findByProperty(PROGETTO_AD_HOC, progettoAdHoc);
|
||||
}
|
||||
|
||||
public List findByIdRichiestaInfobus(Object idRichiestaInfobus) {
|
||||
return findByProperty(ID_RICHIESTA_INFOBUS, idRichiestaInfobus);
|
||||
}
|
||||
|
||||
public List findByTipoSpedizione(Object tipoSpedizione) {
|
||||
return findByProperty(TIPO_SPEDIZIONE, tipoSpedizione);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByCodProfiloTariffario(Object codProfiloTariffario) {
|
||||
return findByProperty(COD_PROFILO_TARIFFARIO, codProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByDescProfiloTariffario(Object descProfiloTariffario) {
|
||||
return findByProperty(DESC_PROFILO_TARIFFARIO, descProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByCodOfferta(Object codOfferta) {
|
||||
return findByProperty(COD_OFFERTA, codOfferta);
|
||||
}
|
||||
|
||||
public List findByDescOfferta(Object descOfferta) {
|
||||
return findByProperty(DESC_OFFERTA, descOfferta);
|
||||
}
|
||||
|
||||
public List findByCodAccordo(Object codAccordo) {
|
||||
return findByProperty(COD_ACCORDO, codAccordo);
|
||||
}
|
||||
|
||||
public List findByDescAccordo(Object descAccordo) {
|
||||
return findByProperty(DESC_ACCORDO, descAccordo);
|
||||
}
|
||||
|
||||
public List findByDescanaleVendita(Object descanaleVendita) {
|
||||
return findByProperty(DESCANALE_VENDITA, descanaleVendita);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpBitInRec instances");
|
||||
try {
|
||||
String queryString = "from MnpBitInRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitInRec merge(MnpBitInRec detachedInstance) {
|
||||
log.debug("merging MnpBitInRec instance");
|
||||
try {
|
||||
MnpBitInRec result = (MnpBitInRec) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpBitInRec instance) {
|
||||
log.debug("attaching dirty MnpBitInRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpBitInRec instance) {
|
||||
log.debug("attaching clean MnpBitInRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,186 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
|
||||
// Generated 16-set-2009 17.22.59 by Hibernate Tools Customizzato per MNP 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 org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* DAO object for domain model class MnpBitNotificaDonorOut.
|
||||
* @see .MnpBitNotificaDonorOut
|
||||
* @author C.A.
|
||||
*/
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Criterion;
|
||||
import org.hibernate.Criteria;
|
||||
import java.util.*;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpBitNotificaDonorOut;
|
||||
|
||||
public class MnpBitNotificaDonorOutDAO extends BaseHibernateTestDAO{
|
||||
|
||||
protected static final Log log = LogFactory.getLog(MnpBitNotificaDonorOutDAO.class);
|
||||
public static final String HB_PROP_DA_SCODARE = "daScodare";
|
||||
|
||||
public void save(MnpBitNotificaDonorOut transientInstance) {
|
||||
log.debug("saving MnpBitNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpBitNotificaDonorOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "select model from MnpBitNotificaDonorOut 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 MnpBitNotificaDonorOut ");
|
||||
try {
|
||||
String queryString = " from MnpBitNotificaDonorOut";
|
||||
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(MnpBitNotificaDonorOut instance) {
|
||||
log.debug("attaching dirty MnpBitNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpBitNotificaDonorOut instance) {
|
||||
log.debug("attaching clean MnpBitNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpBitNotificaDonorOut persistentInstance) {
|
||||
log.debug("deleting MnpBitNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitNotificaDonorOut merge(MnpBitNotificaDonorOut detachedInstance) {
|
||||
log.debug("merging MnpBitNotificaDonorOut instance");
|
||||
try {
|
||||
MnpBitNotificaDonorOut result = (MnpBitNotificaDonorOut) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCriteria(List criterion) {
|
||||
log.debug("finding MnpBitNotificaDonorOut instance by criteria");
|
||||
try {
|
||||
Criteria crit = getSession() .createCriteria("it.valueteam.obj.dao.db.hb.MnpBitNotificaDonorOut");
|
||||
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 MnpBitNotificaDonorOut findById( Long id) {
|
||||
log.debug("getting MnpBitNotificaDonorOut instance with id: " + id);
|
||||
try {
|
||||
MnpBitNotificaDonorOut instance = (MnpBitNotificaDonorOut) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.MnpBitNotificaDonorOut", 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 findByExample(MnpBitNotificaDonorOut instance) {
|
||||
log.debug("finding MnpBitNotificaDonorOut instance by example");
|
||||
try {
|
||||
List results = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpBitNotificaDonorOut")
|
||||
|
||||
.add(Example.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();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpBitOutRec;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpBitOutRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpBitOutRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpBitOutRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpBitOutRecDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String STATO_RICHIESTA = "statoRichiesta";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String TIPO_FILE = "tipoFile";
|
||||
|
||||
public static final String ID_RICHIESTA_DBC = "idRichiestaDbc";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String NOME_FILE_TP = "nomeFileTp";
|
||||
|
||||
public void save(MnpBitOutRec transientInstance) {
|
||||
log.debug("saving MnpBitOutRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpBitOutRec persistentInstance) {
|
||||
log.debug("deleting MnpBitOutRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitOutRec findById(java.lang.Long id) {
|
||||
log.debug("getting MnpBitOutRec instance with id: " + id);
|
||||
try {
|
||||
MnpBitOutRec instance = (MnpBitOutRec) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpBitOutRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpBitOutRec instance) {
|
||||
log.debug("finding MnpBitOutRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpBitOutRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpBitOutRec instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpBitOutRec as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByStatoRichiesta(Object statoRichiesta) {
|
||||
return findByProperty(STATO_RICHIESTA, statoRichiesta);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByTipoFile(Object tipoFile) {
|
||||
return findByProperty(TIPO_FILE, tipoFile);
|
||||
}
|
||||
|
||||
public List findByIdRichiestaDbc(Object idRichiestaDbc) {
|
||||
return findByProperty(ID_RICHIESTA_DBC, idRichiestaDbc);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByNomeFileTp(Object nomeFileTp) {
|
||||
return findByProperty(NOME_FILE_TP, nomeFileTp);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpBitOutRec instances");
|
||||
try {
|
||||
String queryString = "from MnpBitOutRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitOutRec merge(MnpBitOutRec detachedInstance) {
|
||||
log.debug("merging MnpBitOutRec instance");
|
||||
try {
|
||||
MnpBitOutRec result = (MnpBitOutRec) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpBitOutRec instance) {
|
||||
log.debug("attaching dirty MnpBitOutRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpBitOutRec instance) {
|
||||
log.debug("attaching clean MnpBitOutRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,362 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpBitScartiIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpBitScartiIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpBitScartiIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpBitScartiInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpBitScartiInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String COD_SERVICE_ORDER = "codServiceOrder";
|
||||
|
||||
public static final String DONATING_COD_OP = "donatingCodOp";
|
||||
|
||||
public static final String COD_PRE_POST = "codPrePost";
|
||||
|
||||
public static final String PREFISSO_TIM = "prefissoTim";
|
||||
|
||||
public static final String NUMERO_TIM = "numeroTim";
|
||||
|
||||
public static final String PREFISSO_OLO = "prefissoOlo";
|
||||
|
||||
public static final String NUMERO_OLO = "numeroOlo";
|
||||
|
||||
public static final String ICCID_OLO = "iccidOlo";
|
||||
|
||||
public static final String COD_FIS_CLI_OLO = "codFisCliOlo";
|
||||
|
||||
public static final String TIPO_DOC_IDENTITA = "tipoDocIdentita";
|
||||
|
||||
public static final String NUM_DOC_IDENTITA = "numDocIdentita";
|
||||
|
||||
public static final String DATA_RICHIESTA = "dataRichiesta";
|
||||
|
||||
public static final String COD_CONTRATTO = "codContratto";
|
||||
|
||||
public static final String OT_COD = "otCod";
|
||||
|
||||
public static final String NOME_CLIENTE_PF = "nomeClientePf";
|
||||
|
||||
public static final String COGNOME_CLIENTE_PF = "cognomeClientePf";
|
||||
|
||||
public static final String DENOMINAZIONE_PG = "denominazionePg";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String IMSI_TIM = "imsiTim";
|
||||
|
||||
public static final String DATA_INVIO_RICHIESTA = "dataInvioRichiesta";
|
||||
|
||||
public static final String COD_RICHIESTA = "codRichiesta";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public static final String ASSET_USES = "assetUses";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public static final String PROGETTO_AD_HOC = "progettoAdHoc";
|
||||
|
||||
public static final String ID_RICHIESTA_INFOBUS = "idRichiestaInfobus";
|
||||
|
||||
public static final String TIPO_SPEDIZIONE = "tipoSpedizione";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String COD_PROFILO_TARIFFARIO = "codProfiloTariffario";
|
||||
|
||||
public static final String DESC_PROFILO_TARIFFARIO = "descProfiloTariffario";
|
||||
|
||||
public static final String COD_OFFERTA = "codOfferta";
|
||||
|
||||
public static final String DESC_OFFERTA = "descOfferta";
|
||||
|
||||
public static final String COD_ACCORDO = "codAccordo";
|
||||
|
||||
public static final String DESC_ACCORDO = "descAccordo";
|
||||
|
||||
public static final String DESCANALE_VENDITA = "descanaleVendita";
|
||||
|
||||
public void save(MnpBitScartiIn transientInstance) {
|
||||
log.debug("saving MnpBitScartiIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpBitScartiIn persistentInstance) {
|
||||
log.debug("deleting MnpBitScartiIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitScartiIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpBitScartiIn instance with id: " + id);
|
||||
try {
|
||||
MnpBitScartiIn instance = (MnpBitScartiIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpBitScartiIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpBitScartiIn instance) {
|
||||
log.debug("finding MnpBitScartiIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpBitScartiIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpBitScartiIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpBitScartiIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByCodServiceOrder(Object codServiceOrder) {
|
||||
return findByProperty(COD_SERVICE_ORDER, codServiceOrder);
|
||||
}
|
||||
|
||||
public List findByDonatingCodOp(Object donatingCodOp) {
|
||||
return findByProperty(DONATING_COD_OP, donatingCodOp);
|
||||
}
|
||||
|
||||
public List findByCodPrePost(Object codPrePost) {
|
||||
return findByProperty(COD_PRE_POST, codPrePost);
|
||||
}
|
||||
|
||||
public List findByPrefissoTim(Object prefissoTim) {
|
||||
return findByProperty(PREFISSO_TIM, prefissoTim);
|
||||
}
|
||||
|
||||
public List findByNumeroTim(Object numeroTim) {
|
||||
return findByProperty(NUMERO_TIM, numeroTim);
|
||||
}
|
||||
|
||||
public List findByPrefissoOlo(Object prefissoOlo) {
|
||||
return findByProperty(PREFISSO_OLO, prefissoOlo);
|
||||
}
|
||||
|
||||
public List findByNumeroOlo(Object numeroOlo) {
|
||||
return findByProperty(NUMERO_OLO, numeroOlo);
|
||||
}
|
||||
|
||||
public List findByIccidOlo(Object iccidOlo) {
|
||||
return findByProperty(ICCID_OLO, iccidOlo);
|
||||
}
|
||||
|
||||
public List findByCodFisCliOlo(Object codFisCliOlo) {
|
||||
return findByProperty(COD_FIS_CLI_OLO, codFisCliOlo);
|
||||
}
|
||||
|
||||
public List findByTipoDocIdentita(Object tipoDocIdentita) {
|
||||
return findByProperty(TIPO_DOC_IDENTITA, tipoDocIdentita);
|
||||
}
|
||||
|
||||
public List findByNumDocIdentita(Object numDocIdentita) {
|
||||
return findByProperty(NUM_DOC_IDENTITA, numDocIdentita);
|
||||
}
|
||||
|
||||
public List findByDataRichiesta(Object dataRichiesta) {
|
||||
return findByProperty(DATA_RICHIESTA, dataRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodContratto(Object codContratto) {
|
||||
return findByProperty(COD_CONTRATTO, codContratto);
|
||||
}
|
||||
|
||||
public List findByOtCod(Object otCod) {
|
||||
return findByProperty(OT_COD, otCod);
|
||||
}
|
||||
|
||||
public List findByNomeClientePf(Object nomeClientePf) {
|
||||
return findByProperty(NOME_CLIENTE_PF, nomeClientePf);
|
||||
}
|
||||
|
||||
public List findByCognomeClientePf(Object cognomeClientePf) {
|
||||
return findByProperty(COGNOME_CLIENTE_PF, cognomeClientePf);
|
||||
}
|
||||
|
||||
public List findByDenominazionePg(Object denominazionePg) {
|
||||
return findByProperty(DENOMINAZIONE_PG, denominazionePg);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByImsiTim(Object imsiTim) {
|
||||
return findByProperty(IMSI_TIM, imsiTim);
|
||||
}
|
||||
|
||||
public List findByDataInvioRichiesta(Object dataInvioRichiesta) {
|
||||
return findByProperty(DATA_INVIO_RICHIESTA, dataInvioRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodRichiesta(Object codRichiesta) {
|
||||
return findByProperty(COD_RICHIESTA, codRichiesta);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findByAssetUses(Object assetUses) {
|
||||
return findByProperty(ASSET_USES, assetUses);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findByProgettoAdHoc(Object progettoAdHoc) {
|
||||
return findByProperty(PROGETTO_AD_HOC, progettoAdHoc);
|
||||
}
|
||||
|
||||
public List findByIdRichiestaInfobus(Object idRichiestaInfobus) {
|
||||
return findByProperty(ID_RICHIESTA_INFOBUS, idRichiestaInfobus);
|
||||
}
|
||||
|
||||
public List findByTipoSpedizione(Object tipoSpedizione) {
|
||||
return findByProperty(TIPO_SPEDIZIONE, tipoSpedizione);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByCodProfiloTariffario(Object codProfiloTariffario) {
|
||||
return findByProperty(COD_PROFILO_TARIFFARIO, codProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByDescProfiloTariffario(Object descProfiloTariffario) {
|
||||
return findByProperty(DESC_PROFILO_TARIFFARIO, descProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByCodOfferta(Object codOfferta) {
|
||||
return findByProperty(COD_OFFERTA, codOfferta);
|
||||
}
|
||||
|
||||
public List findByDescOfferta(Object descOfferta) {
|
||||
return findByProperty(DESC_OFFERTA, descOfferta);
|
||||
}
|
||||
|
||||
public List findByCodAccordo(Object codAccordo) {
|
||||
return findByProperty(COD_ACCORDO, codAccordo);
|
||||
}
|
||||
|
||||
public List findByDescAccordo(Object descAccordo) {
|
||||
return findByProperty(DESC_ACCORDO, descAccordo);
|
||||
}
|
||||
|
||||
public List findByDescanaleVendita(Object descanaleVendita) {
|
||||
return findByProperty(DESCANALE_VENDITA, descanaleVendita);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpBitScartiIn instances");
|
||||
try {
|
||||
String queryString = "from MnpBitScartiIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBitScartiIn merge(MnpBitScartiIn detachedInstance) {
|
||||
log.debug("merging MnpBitScartiIn instance");
|
||||
try {
|
||||
MnpBitScartiIn result = (MnpBitScartiIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpBitScartiIn instance) {
|
||||
log.debug("attaching dirty MnpBitScartiIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpBitScartiIn instance) {
|
||||
log.debug("attaching clean MnpBitScartiIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpBloccoRichieste;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpBloccoRichieste.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpBloccoRichieste
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpBloccoRichiesteDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpBloccoRichiesteDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DA_SBLOCCARE = "daSbloccare";
|
||||
|
||||
public static final String TT = "tt";
|
||||
|
||||
public static final String UTENTE = "utente";
|
||||
|
||||
public static final String IP_ADDRESS = "ipAddress";
|
||||
|
||||
public static final String TIPO_PROCESSO = "tipoProcesso";
|
||||
|
||||
public void save(MnpBloccoRichieste transientInstance) {
|
||||
log.debug("saving MnpBloccoRichieste instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpBloccoRichieste persistentInstance) {
|
||||
log.debug("deleting MnpBloccoRichieste instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBloccoRichieste findById(java.lang.Long id) {
|
||||
log.debug("getting MnpBloccoRichieste instance with id: " + id);
|
||||
try {
|
||||
MnpBloccoRichieste instance = (MnpBloccoRichieste) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpBloccoRichieste", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpBloccoRichieste instance) {
|
||||
log.debug("finding MnpBloccoRichieste instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpBloccoRichieste").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpBloccoRichieste instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpBloccoRichieste as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDaSbloccare(Object daSbloccare) {
|
||||
return findByProperty(DA_SBLOCCARE, daSbloccare);
|
||||
}
|
||||
|
||||
public List findByTt(Object tt) {
|
||||
return findByProperty(TT, tt);
|
||||
}
|
||||
|
||||
public List findByUtente(Object utente) {
|
||||
return findByProperty(UTENTE, utente);
|
||||
}
|
||||
|
||||
public List findByIpAddress(Object ipAddress) {
|
||||
return findByProperty(IP_ADDRESS, ipAddress);
|
||||
}
|
||||
|
||||
public List findByTipoProcesso(Object tipoProcesso) {
|
||||
return findByProperty(TIPO_PROCESSO, tipoProcesso);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpBloccoRichieste instances");
|
||||
try {
|
||||
String queryString = "from MnpBloccoRichieste";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpBloccoRichieste merge(MnpBloccoRichieste detachedInstance) {
|
||||
log.debug("merging MnpBloccoRichieste instance");
|
||||
try {
|
||||
MnpBloccoRichieste result = (MnpBloccoRichieste) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpBloccoRichieste instance) {
|
||||
log.debug("attaching dirty MnpBloccoRichieste instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpBloccoRichieste instance) {
|
||||
log.debug("attaching clean MnpBloccoRichieste instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,124 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCausaleAccodamento;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCausaleAccodamento.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCausaleAccodamento
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCausaleAccodamentoDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCausaleAccodamentoDAO.class);
|
||||
|
||||
// property constants
|
||||
|
||||
public void save(MnpCausaleAccodamento transientInstance) {
|
||||
log.debug("saving MnpCausaleAccodamento instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCausaleAccodamento persistentInstance) {
|
||||
log.debug("deleting MnpCausaleAccodamento instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCausaleAccodamento instance) {
|
||||
log.debug("finding MnpCausaleAccodamento instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpCausaleAccodamento").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCausaleAccodamento instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCausaleAccodamento as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCausaleAccodamento instances");
|
||||
try {
|
||||
String queryString = "from MnpCausaleAccodamento";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCausaleAccodamento merge(MnpCausaleAccodamento detachedInstance) {
|
||||
log.debug("merging MnpCausaleAccodamento instance");
|
||||
try {
|
||||
MnpCausaleAccodamento result = (MnpCausaleAccodamento) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCausaleAccodamento instance) {
|
||||
log.debug("attaching dirty MnpCausaleAccodamento instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCausaleAccodamento instance) {
|
||||
log.debug("attaching clean MnpCausaleAccodamento instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCausaleRifiuto;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCausaleRifiuto.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCausaleRifiuto
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCausaleRifiutoDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCausaleRifiutoDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CAUSALE = "causale";
|
||||
|
||||
public void save(MnpCausaleRifiuto transientInstance) {
|
||||
log.debug("saving MnpCausaleRifiuto instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCausaleRifiuto persistentInstance) {
|
||||
log.debug("deleting MnpCausaleRifiuto instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCausaleRifiuto findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCausaleRifiuto instance with id: " + id);
|
||||
try {
|
||||
MnpCausaleRifiuto instance = (MnpCausaleRifiuto) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpCausaleRifiuto", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCausaleRifiuto instance) {
|
||||
log.debug("finding MnpCausaleRifiuto instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpCausaleRifiuto").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCausaleRifiuto instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCausaleRifiuto as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCausale(Object causale) {
|
||||
return findByProperty(CAUSALE, causale);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCausaleRifiuto instances");
|
||||
try {
|
||||
String queryString = "from MnpCausaleRifiuto";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCausaleRifiuto merge(MnpCausaleRifiuto detachedInstance) {
|
||||
log.debug("merging MnpCausaleRifiuto instance");
|
||||
try {
|
||||
MnpCausaleRifiuto result = (MnpCausaleRifiuto) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCausaleRifiuto instance) {
|
||||
log.debug("attaching dirty MnpCausaleRifiuto instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCausaleRifiuto instance) {
|
||||
log.debug("attaching clean MnpCausaleRifiuto instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,258 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCcrmNotificaOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCcrmNotificaOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCcrmNotificaOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCcrmNotificaOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCcrmNotificaOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String NUMERO_TELEFONICO_OLO = "numeroTelefonicoOlo";
|
||||
|
||||
public static final String NUMERO_DUALE = "numeroDuale";
|
||||
|
||||
public static final String OPERATORE = "operatore";
|
||||
|
||||
public static final String IDENTIFICATIVO_RICHIESTA_AOM = "identificativoRichiestaAom";
|
||||
|
||||
public static final String TIPO_RICHIESTA = "tipoRichiesta";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String TIPOLOGIA_UTENZA = "tipologiaUtenza";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER = "iccdSerialNumber";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String CAUSALE = "causale";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_PROCESSO = "tipoProcesso";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String PROGETTOADHOC = "progettoadhoc";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String CODICE_DEALER = "codiceDealer";
|
||||
|
||||
public void save(MnpCcrmNotificaOut transientInstance) {
|
||||
log.debug("saving MnpCcrmNotificaOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCcrmNotificaOut persistentInstance) {
|
||||
log.debug("deleting MnpCcrmNotificaOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmNotificaOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCcrmNotificaOut instance with id: " + id);
|
||||
try {
|
||||
MnpCcrmNotificaOut instance = (MnpCcrmNotificaOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpCcrmNotificaOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCcrmNotificaOut instance) {
|
||||
log.debug("finding MnpCcrmNotificaOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCcrmNotificaOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCcrmNotificaOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCcrmNotificaOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByNumeroTelefonicoOlo(Object numeroTelefonicoOlo) {
|
||||
return findByProperty(NUMERO_TELEFONICO_OLO, numeroTelefonicoOlo);
|
||||
}
|
||||
|
||||
public List findByNumeroDuale(Object numeroDuale) {
|
||||
return findByProperty(NUMERO_DUALE, numeroDuale);
|
||||
}
|
||||
|
||||
public List findByOperatore(Object operatore) {
|
||||
return findByProperty(OPERATORE, operatore);
|
||||
}
|
||||
|
||||
public List findByIdentificativoRichiestaAom(
|
||||
Object identificativoRichiestaAom) {
|
||||
return findByProperty(IDENTIFICATIVO_RICHIESTA_AOM,
|
||||
identificativoRichiestaAom);
|
||||
}
|
||||
|
||||
public List findByTipoRichiesta(Object tipoRichiesta) {
|
||||
return findByProperty(TIPO_RICHIESTA, tipoRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByTipologiaUtenza(Object tipologiaUtenza) {
|
||||
return findByProperty(TIPOLOGIA_UTENZA, tipologiaUtenza);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumber(Object iccdSerialNumber) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER, iccdSerialNumber);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByCausale(Object causale) {
|
||||
return findByProperty(CAUSALE, causale);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoProcesso(Object tipoProcesso) {
|
||||
return findByProperty(TIPO_PROCESSO, tipoProcesso);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByProgettoadhoc(Object progettoadhoc) {
|
||||
return findByProperty(PROGETTOADHOC, progettoadhoc);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByCodiceDealer(Object codiceDealer) {
|
||||
return findByProperty(CODICE_DEALER, codiceDealer);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCcrmNotificaOut instances");
|
||||
try {
|
||||
String queryString = "from MnpCcrmNotificaOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmNotificaOut merge(MnpCcrmNotificaOut detachedInstance) {
|
||||
log.debug("merging MnpCcrmNotificaOut instance");
|
||||
try {
|
||||
MnpCcrmNotificaOut result = (MnpCcrmNotificaOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCcrmNotificaOut instance) {
|
||||
log.debug("attaching dirty MnpCcrmNotificaOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCcrmNotificaOut instance) {
|
||||
log.debug("attaching clean MnpCcrmNotificaOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,183 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCcrmScartiDonor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCcrmScartiDonor.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCcrmScartiDonor
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCcrmScartiDonorDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCcrmScartiDonorDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String ESITO_VALIDAZIONE = "esitoValidazione";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String DATA_VAL_EFF = "dataValEff";
|
||||
|
||||
public static final String TIPO_UTENZA = "tipoUtenza";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public void save(MnpCcrmScartiDonor transientInstance) {
|
||||
log.debug("saving MnpCcrmScartiDonor instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCcrmScartiDonor persistentInstance) {
|
||||
log.debug("deleting MnpCcrmScartiDonor instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmScartiDonor findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCcrmScartiDonor instance with id: " + id);
|
||||
try {
|
||||
MnpCcrmScartiDonor instance = (MnpCcrmScartiDonor) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpCcrmScartiDonor", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCcrmScartiDonor instance) {
|
||||
log.debug("finding MnpCcrmScartiDonor instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpCcrmScartiDonor").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCcrmScartiDonor instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCcrmScartiDonor as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByEsitoValidazione(Object esitoValidazione) {
|
||||
return findByProperty(ESITO_VALIDAZIONE, esitoValidazione);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByDataValEff(Object dataValEff) {
|
||||
return findByProperty(DATA_VAL_EFF, dataValEff);
|
||||
}
|
||||
|
||||
public List findByTipoUtenza(Object tipoUtenza) {
|
||||
return findByProperty(TIPO_UTENZA, tipoUtenza);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCcrmScartiDonor instances");
|
||||
try {
|
||||
String queryString = "from MnpCcrmScartiDonor";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmScartiDonor merge(MnpCcrmScartiDonor detachedInstance) {
|
||||
log.debug("merging MnpCcrmScartiDonor instance");
|
||||
try {
|
||||
MnpCcrmScartiDonor result = (MnpCcrmScartiDonor) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCcrmScartiDonor instance) {
|
||||
log.debug("attaching dirty MnpCcrmScartiDonor instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCcrmScartiDonor instance) {
|
||||
log.debug("attaching clean MnpCcrmScartiDonor instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,258 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCcrmwCoopNotOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCcrmwCoopNotOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCcrmwCoopNotOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCcrmwCoopNotOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCcrmwCoopNotOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String CODICE_EVENTO = "codiceEvento";
|
||||
|
||||
public static final String NUMERO_TELEFONICO_OLO = "numeroTelefonicoOlo";
|
||||
|
||||
public static final String NUMERO_DUALE = "numeroDuale";
|
||||
|
||||
public static final String OPERATORE = "operatore";
|
||||
|
||||
public static final String IDENTIFICATIVO_RICHIESTA_AOM = "identificativoRichiestaAom";
|
||||
|
||||
public static final String TIPO_RICHIESTA = "tipoRichiesta";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String TIPOLOGIA_UTENZA = "tipologiaUtenza";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER = "iccdSerialNumber";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String CAUSALE = "causale";
|
||||
|
||||
public static final String NOTE = "note";
|
||||
|
||||
public static final String TIPO_PROCESSO = "tipoProcesso";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String PROGETTOADHOC = "progettoadhoc";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String CODICE_DEALER = "codiceDealer";
|
||||
|
||||
public void save(MnpCcrmwCoopNotOut transientInstance) {
|
||||
log.debug("saving MnpCcrmwCoopNotOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCcrmwCoopNotOut persistentInstance) {
|
||||
log.debug("deleting MnpCcrmwCoopNotOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmwCoopNotOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCcrmwCoopNotOut instance with id: " + id);
|
||||
try {
|
||||
MnpCcrmwCoopNotOut instance = (MnpCcrmwCoopNotOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpCcrmwCoopNotOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCcrmwCoopNotOut instance) {
|
||||
log.debug("finding MnpCcrmwCoopNotOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCcrmwCoopNotOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCcrmwCoopNotOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCcrmwCoopNotOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodiceEvento(Object codiceEvento) {
|
||||
return findByProperty(CODICE_EVENTO, codiceEvento);
|
||||
}
|
||||
|
||||
public List findByNumeroTelefonicoOlo(Object numeroTelefonicoOlo) {
|
||||
return findByProperty(NUMERO_TELEFONICO_OLO, numeroTelefonicoOlo);
|
||||
}
|
||||
|
||||
public List findByNumeroDuale(Object numeroDuale) {
|
||||
return findByProperty(NUMERO_DUALE, numeroDuale);
|
||||
}
|
||||
|
||||
public List findByOperatore(Object operatore) {
|
||||
return findByProperty(OPERATORE, operatore);
|
||||
}
|
||||
|
||||
public List findByIdentificativoRichiestaAom(
|
||||
Object identificativoRichiestaAom) {
|
||||
return findByProperty(IDENTIFICATIVO_RICHIESTA_AOM,
|
||||
identificativoRichiestaAom);
|
||||
}
|
||||
|
||||
public List findByTipoRichiesta(Object tipoRichiesta) {
|
||||
return findByProperty(TIPO_RICHIESTA, tipoRichiesta);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByTipologiaUtenza(Object tipologiaUtenza) {
|
||||
return findByProperty(TIPOLOGIA_UTENZA, tipologiaUtenza);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumber(Object iccdSerialNumber) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER, iccdSerialNumber);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByCausale(Object causale) {
|
||||
return findByProperty(CAUSALE, causale);
|
||||
}
|
||||
|
||||
public List findByNote(Object note) {
|
||||
return findByProperty(NOTE, note);
|
||||
}
|
||||
|
||||
public List findByTipoProcesso(Object tipoProcesso) {
|
||||
return findByProperty(TIPO_PROCESSO, tipoProcesso);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByProgettoadhoc(Object progettoadhoc) {
|
||||
return findByProperty(PROGETTOADHOC, progettoadhoc);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByCodiceDealer(Object codiceDealer) {
|
||||
return findByProperty(CODICE_DEALER, codiceDealer);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCcrmwCoopNotOut instances");
|
||||
try {
|
||||
String queryString = "from MnpCcrmwCoopNotOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmwCoopNotOut merge(MnpCcrmwCoopNotOut detachedInstance) {
|
||||
log.debug("merging MnpCcrmwCoopNotOut instance");
|
||||
try {
|
||||
MnpCcrmwCoopNotOut result = (MnpCcrmwCoopNotOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCcrmwCoopNotOut instance) {
|
||||
log.debug("attaching dirty MnpCcrmwCoopNotOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCcrmwCoopNotOut instance) {
|
||||
log.debug("attaching clean MnpCcrmwCoopNotOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,184 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCcrmwCoopScartiDonor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCcrmwCoopScartiDonor.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCcrmwCoopScartiDonor
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCcrmwCoopScartiDonorDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCcrmwCoopScartiDonorDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String ESITO_VALIDAZIONE = "esitoValidazione";
|
||||
|
||||
public static final String CAUSALE_RIFIUTO = "causaleRifiuto";
|
||||
|
||||
public static final String DATA_VAL_EFF = "dataValEff";
|
||||
|
||||
public static final String TIPO_UTENZA = "tipoUtenza";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public static final String RECORD_SCARTATO = "recordScartato";
|
||||
|
||||
public void save(MnpCcrmwCoopScartiDonor transientInstance) {
|
||||
log.debug("saving MnpCcrmwCoopScartiDonor instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCcrmwCoopScartiDonor persistentInstance) {
|
||||
log.debug("deleting MnpCcrmwCoopScartiDonor instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmwCoopScartiDonor findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCcrmwCoopScartiDonor instance with id: " + id);
|
||||
try {
|
||||
MnpCcrmwCoopScartiDonor instance = (MnpCcrmwCoopScartiDonor) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpCcrmwCoopScartiDonor", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCcrmwCoopScartiDonor instance) {
|
||||
log.debug("finding MnpCcrmwCoopScartiDonor instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpCcrmwCoopScartiDonor").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCcrmwCoopScartiDonor instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCcrmwCoopScartiDonor as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByEsitoValidazione(Object esitoValidazione) {
|
||||
return findByProperty(ESITO_VALIDAZIONE, esitoValidazione);
|
||||
}
|
||||
|
||||
public List findByCausaleRifiuto(Object causaleRifiuto) {
|
||||
return findByProperty(CAUSALE_RIFIUTO, causaleRifiuto);
|
||||
}
|
||||
|
||||
public List findByDataValEff(Object dataValEff) {
|
||||
return findByProperty(DATA_VAL_EFF, dataValEff);
|
||||
}
|
||||
|
||||
public List findByTipoUtenza(Object tipoUtenza) {
|
||||
return findByProperty(TIPO_UTENZA, tipoUtenza);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findByRecordScartato(Object recordScartato) {
|
||||
return findByProperty(RECORD_SCARTATO, recordScartato);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCcrmwCoopScartiDonor instances");
|
||||
try {
|
||||
String queryString = "from MnpCcrmwCoopScartiDonor";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCcrmwCoopScartiDonor merge(
|
||||
MnpCcrmwCoopScartiDonor detachedInstance) {
|
||||
log.debug("merging MnpCcrmwCoopScartiDonor instance");
|
||||
try {
|
||||
MnpCcrmwCoopScartiDonor result = (MnpCcrmwCoopScartiDonor) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCcrmwCoopScartiDonor instance) {
|
||||
log.debug("attaching dirty MnpCcrmwCoopScartiDonor instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCcrmwCoopScartiDonor instance) {
|
||||
log.debug("attaching clean MnpCcrmwCoopScartiDonor instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,220 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCirceOutCess;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCirceOutCess.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCirceOutCess
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCirceOutCessDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpCirceOutCessDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String MSISDN_A = "msisdnA";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String MSISDN_B = "msisdnB";
|
||||
|
||||
public static final String MSISDN_C = "msisdnC";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DATA = "data";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String TIPO_FILE = "tipoFile";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public void save(MnpCirceOutCess transientInstance) {
|
||||
log.debug("saving MnpCirceOutCess instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCirceOutCess persistentInstance) {
|
||||
log.debug("deleting MnpCirceOutCess instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutCess findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCirceOutCess instance with id: " + id);
|
||||
try {
|
||||
MnpCirceOutCess instance = (MnpCirceOutCess) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpCirceOutCess", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCirceOutCess instance) {
|
||||
log.debug("finding MnpCirceOutCess instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCirceOutCess").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCirceOutCess instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCirceOutCess as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByMsisdnA(Object msisdnA) {
|
||||
return findByProperty(MSISDN_A, msisdnA);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByMsisdnB(Object msisdnB) {
|
||||
return findByProperty(MSISDN_B, msisdnB);
|
||||
}
|
||||
|
||||
public List findByMsisdnC(Object msisdnC) {
|
||||
return findByProperty(MSISDN_C, msisdnC);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByData(Object data) {
|
||||
return findByProperty(DATA, data);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByTipoFile(Object tipoFile) {
|
||||
return findByProperty(TIPO_FILE, tipoFile);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCirceOutCess instances");
|
||||
try {
|
||||
String queryString = "from MnpCirceOutCess";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutCess merge(MnpCirceOutCess detachedInstance) {
|
||||
log.debug("merging MnpCirceOutCess instance");
|
||||
try {
|
||||
MnpCirceOutCess result = (MnpCirceOutCess) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCirceOutCess instance) {
|
||||
log.debug("attaching dirty MnpCirceOutCess instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCirceOutCess instance) {
|
||||
log.debug("attaching clean MnpCirceOutCess instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCirceOutCessPort;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCirceOutCessPort.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCirceOutCessPort
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCirceOutCessPortDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCirceOutCessPortDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String MSISDN_A = "msisdnA";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String MSISDN_B = "msisdnB";
|
||||
|
||||
public static final String MSISDN_C = "msisdnC";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DATA = "data";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String TIPO_FILE = "tipoFile";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public void save(MnpCirceOutCessPort transientInstance) {
|
||||
log.debug("saving MnpCirceOutCessPort instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCirceOutCessPort persistentInstance) {
|
||||
log.debug("deleting MnpCirceOutCessPort instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutCessPort findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCirceOutCessPort instance with id: " + id);
|
||||
try {
|
||||
MnpCirceOutCessPort instance = (MnpCirceOutCessPort) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpCirceOutCessPort", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCirceOutCessPort instance) {
|
||||
log.debug("finding MnpCirceOutCessPort instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCirceOutCessPort").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCirceOutCessPort instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCirceOutCessPort as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByMsisdnA(Object msisdnA) {
|
||||
return findByProperty(MSISDN_A, msisdnA);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByMsisdnB(Object msisdnB) {
|
||||
return findByProperty(MSISDN_B, msisdnB);
|
||||
}
|
||||
|
||||
public List findByMsisdnC(Object msisdnC) {
|
||||
return findByProperty(MSISDN_C, msisdnC);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByData(Object data) {
|
||||
return findByProperty(DATA, data);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByTipoFile(Object tipoFile) {
|
||||
return findByProperty(TIPO_FILE, tipoFile);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCirceOutCessPort instances");
|
||||
try {
|
||||
String queryString = "from MnpCirceOutCessPort";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutCessPort merge(MnpCirceOutCessPort detachedInstance) {
|
||||
log.debug("merging MnpCirceOutCessPort instance");
|
||||
try {
|
||||
MnpCirceOutCessPort result = (MnpCirceOutCessPort) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCirceOutCessPort instance) {
|
||||
log.debug("attaching dirty MnpCirceOutCessPort instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCirceOutCessPort instance) {
|
||||
log.debug("attaching clean MnpCirceOutCessPort instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCirceOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCirceOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCirceOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCirceOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpCirceOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String MSISDN_A = "msisdnA";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String MSISDN_B = "msisdnB";
|
||||
|
||||
public static final String MSISDN_C = "msisdnC";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DATA_VALIDAZIONE_RICHIESTA = "dataValidazioneRichiesta";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String TIPO_FILE = "tipoFile";
|
||||
|
||||
public void save(MnpCirceOut transientInstance) {
|
||||
log.debug("saving MnpCirceOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCirceOut persistentInstance) {
|
||||
log.debug("deleting MnpCirceOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCirceOut instance with id: " + id);
|
||||
try {
|
||||
MnpCirceOut instance = (MnpCirceOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpCirceOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCirceOut instance) {
|
||||
log.debug("finding MnpCirceOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCirceOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCirceOut instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCirceOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByMsisdnA(Object msisdnA) {
|
||||
return findByProperty(MSISDN_A, msisdnA);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByMsisdnB(Object msisdnB) {
|
||||
return findByProperty(MSISDN_B, msisdnB);
|
||||
}
|
||||
|
||||
public List findByMsisdnC(Object msisdnC) {
|
||||
return findByProperty(MSISDN_C, msisdnC);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByDataValidazioneRichiesta(Object dataValidazioneRichiesta) {
|
||||
return findByProperty(DATA_VALIDAZIONE_RICHIESTA,
|
||||
dataValidazioneRichiesta);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByTipoFile(Object tipoFile) {
|
||||
return findByProperty(TIPO_FILE, tipoFile);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCirceOut instances");
|
||||
try {
|
||||
String queryString = "from MnpCirceOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOut merge(MnpCirceOut detachedInstance) {
|
||||
log.debug("merging MnpCirceOut instance");
|
||||
try {
|
||||
MnpCirceOut result = (MnpCirceOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCirceOut instance) {
|
||||
log.debug("attaching dirty MnpCirceOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCirceOut instance) {
|
||||
log.debug("attaching clean MnpCirceOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,221 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCirceOutRec;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCirceOutRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCirceOutRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCirceOutRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpCirceOutRecDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String MSISDN_A = "msisdnA";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String MSISDN_B = "msisdnB";
|
||||
|
||||
public static final String MSISDN_C = "msisdnC";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DATA_VALIDAZIONE_RICHIESTA = "dataValidazioneRichiesta";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String TIPO_FILE = "tipoFile";
|
||||
|
||||
public void save(MnpCirceOutRec transientInstance) {
|
||||
log.debug("saving MnpCirceOutRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCirceOutRec persistentInstance) {
|
||||
log.debug("deleting MnpCirceOutRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutRec findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCirceOutRec instance with id: " + id);
|
||||
try {
|
||||
MnpCirceOutRec instance = (MnpCirceOutRec) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpCirceOutRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCirceOutRec instance) {
|
||||
log.debug("finding MnpCirceOutRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpCirceOutRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCirceOutRec instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCirceOutRec as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByMsisdnA(Object msisdnA) {
|
||||
return findByProperty(MSISDN_A, msisdnA);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByMsisdnB(Object msisdnB) {
|
||||
return findByProperty(MSISDN_B, msisdnB);
|
||||
}
|
||||
|
||||
public List findByMsisdnC(Object msisdnC) {
|
||||
return findByProperty(MSISDN_C, msisdnC);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByDataValidazioneRichiesta(Object dataValidazioneRichiesta) {
|
||||
return findByProperty(DATA_VALIDAZIONE_RICHIESTA,
|
||||
dataValidazioneRichiesta);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByTipoFile(Object tipoFile) {
|
||||
return findByProperty(TIPO_FILE, tipoFile);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCirceOutRec instances");
|
||||
try {
|
||||
String queryString = "from MnpCirceOutRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutRec merge(MnpCirceOutRec detachedInstance) {
|
||||
log.debug("merging MnpCirceOutRec instance");
|
||||
try {
|
||||
MnpCirceOutRec result = (MnpCirceOutRec) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCirceOutRec instance) {
|
||||
log.debug("attaching dirty MnpCirceOutRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCirceOutRec instance) {
|
||||
log.debug("attaching clean MnpCirceOutRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,215 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpCirceOutScarti;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpCirceOutScarti.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpCirceOutScarti
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpCirceOutScartiDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpCirceOutScartiDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String MSISDN_A = "msisdnA";
|
||||
|
||||
public static final String MSISDN_B = "msisdnB";
|
||||
|
||||
public static final String MSISDN_C = "msisdnC";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String TECNOLOGIA = "tecnologia";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String DATA = "data";
|
||||
|
||||
public static final String DATA_CUT_OVER = "dataCutOver";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String NOME_FILE_PROVENIENZA = "nomeFileProvenienza";
|
||||
|
||||
public void save(MnpCirceOutScarti transientInstance) {
|
||||
log.debug("saving MnpCirceOutScarti instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpCirceOutScarti persistentInstance) {
|
||||
log.debug("deleting MnpCirceOutScarti instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutScarti findById(java.lang.Long id) {
|
||||
log.debug("getting MnpCirceOutScarti instance with id: " + id);
|
||||
try {
|
||||
MnpCirceOutScarti instance = (MnpCirceOutScarti) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpCirceOutScarti", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpCirceOutScarti instance) {
|
||||
log.debug("finding MnpCirceOutScarti instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpCirceOutScarti").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpCirceOutScarti instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpCirceOutScarti as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByMsisdnA(Object msisdnA) {
|
||||
return findByProperty(MSISDN_A, msisdnA);
|
||||
}
|
||||
|
||||
public List findByMsisdnB(Object msisdnB) {
|
||||
return findByProperty(MSISDN_B, msisdnB);
|
||||
}
|
||||
|
||||
public List findByMsisdnC(Object msisdnC) {
|
||||
return findByProperty(MSISDN_C, msisdnC);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByTecnologia(Object tecnologia) {
|
||||
return findByProperty(TECNOLOGIA, tecnologia);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByData(Object data) {
|
||||
return findByProperty(DATA, data);
|
||||
}
|
||||
|
||||
public List findByDataCutOver(Object dataCutOver) {
|
||||
return findByProperty(DATA_CUT_OVER, dataCutOver);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByNomeFileProvenienza(Object nomeFileProvenienza) {
|
||||
return findByProperty(NOME_FILE_PROVENIENZA, nomeFileProvenienza);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpCirceOutScarti instances");
|
||||
try {
|
||||
String queryString = "from MnpCirceOutScarti";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpCirceOutScarti merge(MnpCirceOutScarti detachedInstance) {
|
||||
log.debug("merging MnpCirceOutScarti instance");
|
||||
try {
|
||||
MnpCirceOutScarti result = (MnpCirceOutScarti) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpCirceOutScarti instance) {
|
||||
log.debug("attaching dirty MnpCirceOutScarti instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpCirceOutScarti instance) {
|
||||
log.debug("attaching clean MnpCirceOutScarti instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,136 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDataManutenzione;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDataManutenzione.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDataManutenzione
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDataManutenzioneDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDataManutenzioneDAO.class);
|
||||
|
||||
// property constants
|
||||
|
||||
public void save(MnpDataManutenzione transientInstance) {
|
||||
log.debug("saving MnpDataManutenzione instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDataManutenzione persistentInstance) {
|
||||
log.debug("deleting MnpDataManutenzione instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDataManutenzione findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDataManutenzione instance with id: " + id);
|
||||
try {
|
||||
MnpDataManutenzione instance = (MnpDataManutenzione) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDataManutenzione", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDataManutenzione instance) {
|
||||
log.debug("finding MnpDataManutenzione instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpDataManutenzione").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDataManutenzione instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDataManutenzione as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDataManutenzione instances");
|
||||
try {
|
||||
String queryString = "from MnpDataManutenzione";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDataManutenzione merge(MnpDataManutenzione detachedInstance) {
|
||||
log.debug("merging MnpDataManutenzione instance");
|
||||
try {
|
||||
MnpDataManutenzione result = (MnpDataManutenzione) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDataManutenzione instance) {
|
||||
log.debug("attaching dirty MnpDataManutenzione instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDataManutenzione instance) {
|
||||
log.debug("attaching clean MnpDataManutenzione instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,140 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDateFestive;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDateFestive.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDateFestive
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDateFestiveDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpDateFestiveDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpDateFestive transientInstance) {
|
||||
log.debug("saving MnpDateFestive instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDateFestive persistentInstance) {
|
||||
log.debug("deleting MnpDateFestive instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDateFestive findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDateFestive instance with id: " + id);
|
||||
try {
|
||||
MnpDateFestive instance = (MnpDateFestive) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpDateFestive", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDateFestive instance) {
|
||||
log.debug("finding MnpDateFestive instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpDateFestive").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDateFestive instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDateFestive as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDateFestive instances");
|
||||
try {
|
||||
String queryString = "from MnpDateFestive";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDateFestive merge(MnpDateFestive detachedInstance) {
|
||||
log.debug("merging MnpDateFestive instance");
|
||||
try {
|
||||
MnpDateFestive result = (MnpDateFestive) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDateFestive instance) {
|
||||
log.debug("attaching dirty MnpDateFestive instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDateFestive instance) {
|
||||
log.debug("attaching clean MnpDateFestive instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,314 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDbcgoNotificaDonorOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDbcgoNotificaDonorOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDbcgoNotificaDonorOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDbcgoNotificaDonorOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDbcgoNotificaDonorOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String TIPO_CLIENTE = "tipoCliente";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String CODICE_PRE_POST_PAGATO = "codicePrePostPagato";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String RAGIONE_SOCIALE = "ragioneSociale";
|
||||
|
||||
public static final String TIPO_DOCUMENTO = "tipoDocumento";
|
||||
|
||||
public static final String NUMERO_DOCUMENTO = "numeroDocumento";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER = "iccdSerialNumber";
|
||||
|
||||
public static final String NOME_OT = "nomeOt";
|
||||
|
||||
public static final String RICHIESTAADHOC = "richiestaadhoc";
|
||||
|
||||
public static final String RICHIESTAADHOCAOM = "richiestaadhocaom";
|
||||
|
||||
public static final String CODICERIFIUTOVALIDAZIONE = "codicerifiutovalidazione";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String MARCAGGIO = "marcaggio";
|
||||
|
||||
public static final String SOTTOMARCAGGIO = "sottomarcaggio";
|
||||
|
||||
public static final String IPOTESI_RIFIUTO = "ipotesiRifiuto";
|
||||
|
||||
public static final String PRIORITY = "priority";
|
||||
|
||||
public static final String DATA_CREAZIONE = "dataCreazione";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String OPERATORE_INTERNO = "operatoreInterno";
|
||||
|
||||
public static final String STATO_LINEA = "statoLinea";
|
||||
|
||||
public void save(MnpDbcgoNotificaDonorOut transientInstance) {
|
||||
log.debug("saving MnpDbcgoNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDbcgoNotificaDonorOut persistentInstance) {
|
||||
log.debug("deleting MnpDbcgoNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaDonorOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDbcgoNotificaDonorOut instance with id: " + id);
|
||||
try {
|
||||
MnpDbcgoNotificaDonorOut instance = (MnpDbcgoNotificaDonorOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDbcgoNotificaDonorOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDbcgoNotificaDonorOut instance) {
|
||||
log.debug("finding MnpDbcgoNotificaDonorOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpDbcgoNotificaDonorOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDbcgoNotificaDonorOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaDonorOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByTipoCliente(Object tipoCliente) {
|
||||
return findByProperty(TIPO_CLIENTE, tipoCliente);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodicePrePostPagato(Object codicePrePostPagato) {
|
||||
return findByProperty(CODICE_PRE_POST_PAGATO, codicePrePostPagato);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByRagioneSociale(Object ragioneSociale) {
|
||||
return findByProperty(RAGIONE_SOCIALE, ragioneSociale);
|
||||
}
|
||||
|
||||
public List findByTipoDocumento(Object tipoDocumento) {
|
||||
return findByProperty(TIPO_DOCUMENTO, tipoDocumento);
|
||||
}
|
||||
|
||||
public List findByNumeroDocumento(Object numeroDocumento) {
|
||||
return findByProperty(NUMERO_DOCUMENTO, numeroDocumento);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumber(Object iccdSerialNumber) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER, iccdSerialNumber);
|
||||
}
|
||||
|
||||
public List findByNomeOt(Object nomeOt) {
|
||||
return findByProperty(NOME_OT, nomeOt);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhoc(Object richiestaadhoc) {
|
||||
return findByProperty(RICHIESTAADHOC, richiestaadhoc);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhocaom(Object richiestaadhocaom) {
|
||||
return findByProperty(RICHIESTAADHOCAOM, richiestaadhocaom);
|
||||
}
|
||||
|
||||
public List findByCodicerifiutovalidazione(Object codicerifiutovalidazione) {
|
||||
return findByProperty(CODICERIFIUTOVALIDAZIONE,
|
||||
codicerifiutovalidazione);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByMarcaggio(Object marcaggio) {
|
||||
return findByProperty(MARCAGGIO, marcaggio);
|
||||
}
|
||||
|
||||
public List findBySottomarcaggio(Object sottomarcaggio) {
|
||||
return findByProperty(SOTTOMARCAGGIO, sottomarcaggio);
|
||||
}
|
||||
|
||||
public List findByIpotesiRifiuto(Object ipotesiRifiuto) {
|
||||
return findByProperty(IPOTESI_RIFIUTO, ipotesiRifiuto);
|
||||
}
|
||||
|
||||
public List findByPriority(Object priority) {
|
||||
return findByProperty(PRIORITY, priority);
|
||||
}
|
||||
|
||||
public List findByDataCreazione(Object dataCreazione) {
|
||||
return findByProperty(DATA_CREAZIONE, dataCreazione);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByOperatoreInterno(Object operatoreInterno) {
|
||||
return findByProperty(OPERATORE_INTERNO, operatoreInterno);
|
||||
}
|
||||
|
||||
public List findByStatoLinea(Object statoLinea) {
|
||||
return findByProperty(STATO_LINEA, statoLinea);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDbcgoNotificaDonorOut instances");
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaDonorOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaDonorOut merge(
|
||||
MnpDbcgoNotificaDonorOut detachedInstance) {
|
||||
log.debug("merging MnpDbcgoNotificaDonorOut instance");
|
||||
try {
|
||||
MnpDbcgoNotificaDonorOut result = (MnpDbcgoNotificaDonorOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDbcgoNotificaDonorOut instance) {
|
||||
log.debug("attaching dirty MnpDbcgoNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDbcgoNotificaDonorOut instance) {
|
||||
log.debug("attaching clean MnpDbcgoNotificaDonorOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDbcgoNotificaPortingOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDbcgoNotificaPortingOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDbcgoNotificaPortingOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDbcgoNotificaPortingOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDbcgoNotificaPortingOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String DATA_CREAZIONE = "dataCreazione";
|
||||
|
||||
public void save(MnpDbcgoNotificaPortingOut transientInstance) {
|
||||
log.debug("saving MnpDbcgoNotificaPortingOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDbcgoNotificaPortingOut persistentInstance) {
|
||||
log.debug("deleting MnpDbcgoNotificaPortingOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaPortingOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDbcgoNotificaPortingOut instance with id: " + id);
|
||||
try {
|
||||
MnpDbcgoNotificaPortingOut instance = (MnpDbcgoNotificaPortingOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDbcgoNotificaPortingOut",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDbcgoNotificaPortingOut instance) {
|
||||
log.debug("finding MnpDbcgoNotificaPortingOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpDbcgoNotificaPortingOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDbcgoNotificaPortingOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaPortingOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByDataCreazione(Object dataCreazione) {
|
||||
return findByProperty(DATA_CREAZIONE, dataCreazione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDbcgoNotificaPortingOut instances");
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaPortingOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaPortingOut merge(
|
||||
MnpDbcgoNotificaPortingOut detachedInstance) {
|
||||
log.debug("merging MnpDbcgoNotificaPortingOut instance");
|
||||
try {
|
||||
MnpDbcgoNotificaPortingOut result = (MnpDbcgoNotificaPortingOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDbcgoNotificaPortingOut instance) {
|
||||
log.debug("attaching dirty MnpDbcgoNotificaPortingOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDbcgoNotificaPortingOut instance) {
|
||||
log.debug("attaching clean MnpDbcgoNotificaPortingOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,354 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDbcgoNotificaRecOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDbcgoNotificaRecOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDbcgoNotificaRecOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDbcgoNotificaRecOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDbcgoNotificaRecOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String TIPO_CLIENTE = "tipoCliente";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String CODICE_PRE_POST_PAGATO = "codicePrePostPagato";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String RAGIONE_SOCIALE = "ragioneSociale";
|
||||
|
||||
public static final String TIPO_DOCUMENTO = "tipoDocumento";
|
||||
|
||||
public static final String NUMERO_DOCUMENTO = "numeroDocumento";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER = "iccdSerialNumber";
|
||||
|
||||
public static final String NOME_OT = "nomeOt";
|
||||
|
||||
public static final String RICHIESTAADHOC = "richiestaadhoc";
|
||||
|
||||
public static final String RICHIESTAADHOCAOM = "richiestaadhocaom";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String NUMERO_INVII = "numeroInvii";
|
||||
|
||||
public static final String CAUSALE_ACCODAMENTO = "causaleAccodamento";
|
||||
|
||||
public static final String PRIORITY = "priority";
|
||||
|
||||
public static final String DATA_CREAZIONE = "dataCreazione";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String CODICE_DEALER = "codiceDealer";
|
||||
|
||||
public static final String SISTEMA_MITTENTE = "sistemaMittente";
|
||||
|
||||
public static final String COD_PROFILO_TARIFFARIO = "codProfiloTariffario";
|
||||
|
||||
public static final String DESC_PROFILO_TARIFFARIO = "descProfiloTariffario";
|
||||
|
||||
public static final String COD_OFFERTA = "codOfferta";
|
||||
|
||||
public static final String DESC_OFFERTA = "descOfferta";
|
||||
|
||||
public static final String COD_ACCORDO = "codAccordo";
|
||||
|
||||
public static final String DESC_ACCORDO = "descAccordo";
|
||||
|
||||
public static final String DESCANALE_VENDITA = "descanaleVendita";
|
||||
|
||||
public static final String CODICE_ORDINE = "codiceOrdine";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public void save(MnpDbcgoNotificaRecOut transientInstance) {
|
||||
log.debug("saving MnpDbcgoNotificaRecOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDbcgoNotificaRecOut persistentInstance) {
|
||||
log.debug("deleting MnpDbcgoNotificaRecOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaRecOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDbcgoNotificaRecOut instance with id: " + id);
|
||||
try {
|
||||
MnpDbcgoNotificaRecOut instance = (MnpDbcgoNotificaRecOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDbcgoNotificaRecOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDbcgoNotificaRecOut instance) {
|
||||
log.debug("finding MnpDbcgoNotificaRecOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpDbcgoNotificaRecOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDbcgoNotificaRecOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaRecOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByTipoCliente(Object tipoCliente) {
|
||||
return findByProperty(TIPO_CLIENTE, tipoCliente);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodicePrePostPagato(Object codicePrePostPagato) {
|
||||
return findByProperty(CODICE_PRE_POST_PAGATO, codicePrePostPagato);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByRagioneSociale(Object ragioneSociale) {
|
||||
return findByProperty(RAGIONE_SOCIALE, ragioneSociale);
|
||||
}
|
||||
|
||||
public List findByTipoDocumento(Object tipoDocumento) {
|
||||
return findByProperty(TIPO_DOCUMENTO, tipoDocumento);
|
||||
}
|
||||
|
||||
public List findByNumeroDocumento(Object numeroDocumento) {
|
||||
return findByProperty(NUMERO_DOCUMENTO, numeroDocumento);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumber(Object iccdSerialNumber) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER, iccdSerialNumber);
|
||||
}
|
||||
|
||||
public List findByNomeOt(Object nomeOt) {
|
||||
return findByProperty(NOME_OT, nomeOt);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhoc(Object richiestaadhoc) {
|
||||
return findByProperty(RICHIESTAADHOC, richiestaadhoc);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhocaom(Object richiestaadhocaom) {
|
||||
return findByProperty(RICHIESTAADHOCAOM, richiestaadhocaom);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByNumeroInvii(Object numeroInvii) {
|
||||
return findByProperty(NUMERO_INVII, numeroInvii);
|
||||
}
|
||||
|
||||
public List findByCausaleAccodamento(Object causaleAccodamento) {
|
||||
return findByProperty(CAUSALE_ACCODAMENTO, causaleAccodamento);
|
||||
}
|
||||
|
||||
public List findByPriority(Object priority) {
|
||||
return findByProperty(PRIORITY, priority);
|
||||
}
|
||||
|
||||
public List findByDataCreazione(Object dataCreazione) {
|
||||
return findByProperty(DATA_CREAZIONE, dataCreazione);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByCodiceDealer(Object codiceDealer) {
|
||||
return findByProperty(CODICE_DEALER, codiceDealer);
|
||||
}
|
||||
|
||||
public List findBySistemaMittente(Object sistemaMittente) {
|
||||
return findByProperty(SISTEMA_MITTENTE, sistemaMittente);
|
||||
}
|
||||
|
||||
public List findByCodProfiloTariffario(Object codProfiloTariffario) {
|
||||
return findByProperty(COD_PROFILO_TARIFFARIO, codProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByDescProfiloTariffario(Object descProfiloTariffario) {
|
||||
return findByProperty(DESC_PROFILO_TARIFFARIO, descProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByCodOfferta(Object codOfferta) {
|
||||
return findByProperty(COD_OFFERTA, codOfferta);
|
||||
}
|
||||
|
||||
public List findByDescOfferta(Object descOfferta) {
|
||||
return findByProperty(DESC_OFFERTA, descOfferta);
|
||||
}
|
||||
|
||||
public List findByCodAccordo(Object codAccordo) {
|
||||
return findByProperty(COD_ACCORDO, codAccordo);
|
||||
}
|
||||
|
||||
public List findByDescAccordo(Object descAccordo) {
|
||||
return findByProperty(DESC_ACCORDO, descAccordo);
|
||||
}
|
||||
|
||||
public List findByDescanaleVendita(Object descanaleVendita) {
|
||||
return findByProperty(DESCANALE_VENDITA, descanaleVendita);
|
||||
}
|
||||
|
||||
public List findByCodiceOrdine(Object codiceOrdine) {
|
||||
return findByProperty(CODICE_ORDINE, codiceOrdine);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDbcgoNotificaRecOut instances");
|
||||
try {
|
||||
String queryString = "from MnpDbcgoNotificaRecOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoNotificaRecOut merge(MnpDbcgoNotificaRecOut detachedInstance) {
|
||||
log.debug("merging MnpDbcgoNotificaRecOut instance");
|
||||
try {
|
||||
MnpDbcgoNotificaRecOut result = (MnpDbcgoNotificaRecOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDbcgoNotificaRecOut instance) {
|
||||
log.debug("attaching dirty MnpDbcgoNotificaRecOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDbcgoNotificaRecOut instance) {
|
||||
log.debug("attaching clean MnpDbcgoNotificaRecOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,171 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDbcgoPriorityIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDbcgoPriorityIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDbcgoPriorityIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDbcgoPriorityInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDbcgoPriorityInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String PRIORITY = "priority";
|
||||
|
||||
public static final String PROCESSO = "processo";
|
||||
|
||||
public static final String ID_SERVICE = "idService";
|
||||
|
||||
public void save(MnpDbcgoPriorityIn transientInstance) {
|
||||
log.debug("saving MnpDbcgoPriorityIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDbcgoPriorityIn persistentInstance) {
|
||||
log.debug("deleting MnpDbcgoPriorityIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoPriorityIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpDbcgoPriorityIn instance with id: " + id);
|
||||
try {
|
||||
MnpDbcgoPriorityIn instance = (MnpDbcgoPriorityIn) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDbcgoPriorityIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDbcgoPriorityIn instance) {
|
||||
log.debug("finding MnpDbcgoPriorityIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpDbcgoPriorityIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDbcgoPriorityIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDbcgoPriorityIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByPriority(Object priority) {
|
||||
return findByProperty(PRIORITY, priority);
|
||||
}
|
||||
|
||||
public List findByProcesso(Object processo) {
|
||||
return findByProperty(PROCESSO, processo);
|
||||
}
|
||||
|
||||
public List findByIdService(Object idService) {
|
||||
return findByProperty(ID_SERVICE, idService);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDbcgoPriorityIn instances");
|
||||
try {
|
||||
String queryString = "from MnpDbcgoPriorityIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDbcgoPriorityIn merge(MnpDbcgoPriorityIn detachedInstance) {
|
||||
log.debug("merging MnpDbcgoPriorityIn instance");
|
||||
try {
|
||||
MnpDbcgoPriorityIn result = (MnpDbcgoPriorityIn) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDbcgoPriorityIn instance) {
|
||||
log.debug("attaching dirty MnpDbcgoPriorityIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDbcgoPriorityIn instance) {
|
||||
log.debug("attaching clean MnpDbcgoPriorityIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpDominioFunzioni;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpDominioFunzioni.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpDominioFunzioni
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpDominioFunzioniDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpDominioFunzioniDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DOMINIO = "dominio";
|
||||
|
||||
public void save(MnpDominioFunzioni transientInstance) {
|
||||
log.debug("saving MnpDominioFunzioni instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpDominioFunzioni persistentInstance) {
|
||||
log.debug("deleting MnpDominioFunzioni instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDominioFunzioni findById(java.lang.String id) {
|
||||
log.debug("getting MnpDominioFunzioni instance with id: " + id);
|
||||
try {
|
||||
MnpDominioFunzioni instance = (MnpDominioFunzioni) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpDominioFunzioni", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpDominioFunzioni instance) {
|
||||
log.debug("finding MnpDominioFunzioni instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpDominioFunzioni").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpDominioFunzioni instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpDominioFunzioni as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDominio(Object dominio) {
|
||||
return findByProperty(DOMINIO, dominio);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpDominioFunzioni instances");
|
||||
try {
|
||||
String queryString = "from MnpDominioFunzioni";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpDominioFunzioni merge(MnpDominioFunzioni detachedInstance) {
|
||||
log.debug("merging MnpDominioFunzioni instance");
|
||||
try {
|
||||
MnpDominioFunzioni result = (MnpDominioFunzioni) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpDominioFunzioni instance) {
|
||||
log.debug("attaching dirty MnpDominioFunzioni instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpDominioFunzioni instance) {
|
||||
log.debug("attaching clean MnpDominioFunzioni instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpEvasione;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpEvasione.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpEvasione
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpEvasioneDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpEvasioneDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CAPACITA_MINIMA = "capacitaMinima";
|
||||
|
||||
public static final String CAPACITA_TOTALE = "capacitaTotale";
|
||||
|
||||
public static final String CAPACITA_EVASA = "capacitaEvasa";
|
||||
|
||||
public static final String PERC_BU = "percBu";
|
||||
|
||||
public static final String PERC_BU_DISATTIVO = "percBuDisattivo";
|
||||
|
||||
public static final String FIFO_DISATTIVO = "fifoDisattivo";
|
||||
|
||||
public void save(MnpEvasione transientInstance) {
|
||||
log.debug("saving MnpEvasione instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpEvasione persistentInstance) {
|
||||
log.debug("deleting MnpEvasione instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEvasione findById(java.lang.Long id) {
|
||||
log.debug("getting MnpEvasione instance with id: " + id);
|
||||
try {
|
||||
MnpEvasione instance = (MnpEvasione) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpEvasione", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpEvasione instance) {
|
||||
log.debug("finding MnpEvasione instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpEvasione").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpEvasione instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpEvasione as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCapacitaMinima(Object capacitaMinima) {
|
||||
return findByProperty(CAPACITA_MINIMA, capacitaMinima);
|
||||
}
|
||||
|
||||
public List findByCapacitaTotale(Object capacitaTotale) {
|
||||
return findByProperty(CAPACITA_TOTALE, capacitaTotale);
|
||||
}
|
||||
|
||||
public List findByCapacitaEvasa(Object capacitaEvasa) {
|
||||
return findByProperty(CAPACITA_EVASA, capacitaEvasa);
|
||||
}
|
||||
|
||||
public List findByPercBu(Object percBu) {
|
||||
return findByProperty(PERC_BU, percBu);
|
||||
}
|
||||
|
||||
public List findByPercBuDisattivo(Object percBuDisattivo) {
|
||||
return findByProperty(PERC_BU_DISATTIVO, percBuDisattivo);
|
||||
}
|
||||
|
||||
public List findByFifoDisattivo(Object fifoDisattivo) {
|
||||
return findByProperty(FIFO_DISATTIVO, fifoDisattivo);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpEvasione instances");
|
||||
try {
|
||||
String queryString = "from MnpEvasione";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEvasione merge(MnpEvasione detachedInstance) {
|
||||
log.debug("merging MnpEvasione instance");
|
||||
try {
|
||||
MnpEvasione result = (MnpEvasione) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpEvasione instance) {
|
||||
log.debug("attaching dirty MnpEvasione instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpEvasione instance) {
|
||||
log.debug("attaching clean MnpEvasione instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpEvasioneRec;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpEvasioneRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpEvasioneRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpEvasioneRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpEvasioneRecDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CAPACITA_MINIMA = "capacitaMinima";
|
||||
|
||||
public static final String CAPACITA_TOTALE = "capacitaTotale";
|
||||
|
||||
public static final String CAPACITA_EVASA_B = "capacitaEvasaB";
|
||||
|
||||
public static final String CAPACITA_EVASA_C = "capacitaEvasaC";
|
||||
|
||||
public static final String CAPACITA_EVASA = "capacitaEvasa";
|
||||
|
||||
public static final String CAPACITA_TOTALE_NUOVA = "capacitaTotaleNuova";
|
||||
|
||||
public static final String PERC_BU = "percBu";
|
||||
|
||||
public static final String PERC_BU_NUOVA = "percBuNuova";
|
||||
|
||||
public void save(MnpEvasioneRec transientInstance) {
|
||||
log.debug("saving MnpEvasioneRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpEvasioneRec persistentInstance) {
|
||||
log.debug("deleting MnpEvasioneRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEvasioneRec findById(java.lang.Long id) {
|
||||
log.debug("getting MnpEvasioneRec instance with id: " + id);
|
||||
try {
|
||||
MnpEvasioneRec instance = (MnpEvasioneRec) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpEvasioneRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpEvasioneRec instance) {
|
||||
log.debug("finding MnpEvasioneRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpEvasioneRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpEvasioneRec instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpEvasioneRec as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCapacitaMinima(Object capacitaMinima) {
|
||||
return findByProperty(CAPACITA_MINIMA, capacitaMinima);
|
||||
}
|
||||
|
||||
public List findByCapacitaTotale(Object capacitaTotale) {
|
||||
return findByProperty(CAPACITA_TOTALE, capacitaTotale);
|
||||
}
|
||||
|
||||
public List findByCapacitaEvasaB(Object capacitaEvasaB) {
|
||||
return findByProperty(CAPACITA_EVASA_B, capacitaEvasaB);
|
||||
}
|
||||
|
||||
public List findByCapacitaEvasaC(Object capacitaEvasaC) {
|
||||
return findByProperty(CAPACITA_EVASA_C, capacitaEvasaC);
|
||||
}
|
||||
|
||||
public List findByCapacitaEvasa(Object capacitaEvasa) {
|
||||
return findByProperty(CAPACITA_EVASA, capacitaEvasa);
|
||||
}
|
||||
|
||||
public List findByCapacitaTotaleNuova(Object capacitaTotaleNuova) {
|
||||
return findByProperty(CAPACITA_TOTALE_NUOVA, capacitaTotaleNuova);
|
||||
}
|
||||
|
||||
public List findByPercBu(Object percBu) {
|
||||
return findByProperty(PERC_BU, percBu);
|
||||
}
|
||||
|
||||
public List findByPercBuNuova(Object percBuNuova) {
|
||||
return findByProperty(PERC_BU_NUOVA, percBuNuova);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpEvasioneRec instances");
|
||||
try {
|
||||
String queryString = "from MnpEvasioneRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEvasioneRec merge(MnpEvasioneRec detachedInstance) {
|
||||
log.debug("merging MnpEvasioneRec instance");
|
||||
try {
|
||||
MnpEvasioneRec result = (MnpEvasioneRec) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpEvasioneRec instance) {
|
||||
log.debug("attaching dirty MnpEvasioneRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpEvasioneRec instance) {
|
||||
log.debug("attaching clean MnpEvasioneRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpEventoGovernance;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpEventoGovernance.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpEventoGovernance
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpEventoGovernanceDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpEventoGovernanceDAO.class);
|
||||
|
||||
|
||||
// property constants
|
||||
public static final String DESCRIZIONE = "descrizione";
|
||||
|
||||
public void save(MnpEventoGovernance transientInstance) {
|
||||
log.debug("saving MnpEventoGovernance instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpEventoGovernance persistentInstance) {
|
||||
log.debug("deleting MnpEventoGovernance instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEventoGovernance findById(java.lang.Long id) {
|
||||
log.debug("getting MnpEventoGovernance instance with id: " + id);
|
||||
try {
|
||||
MnpEventoGovernance instance = (MnpEventoGovernance) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpEventoGovernance", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpEventoGovernance instance) {
|
||||
log.debug("finding MnpEventoGovernance instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpEventoGovernance").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpEventoGovernance instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpEventoGovernance as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDescrizione(Object descrizione) {
|
||||
return findByProperty(DESCRIZIONE, descrizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpEventoGovernance instances");
|
||||
try {
|
||||
String queryString = "from MnpEventoGovernance";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpEventoGovernance merge(MnpEventoGovernance detachedInstance) {
|
||||
log.debug("merging MnpEventoGovernance instance");
|
||||
try {
|
||||
MnpEventoGovernance result = (MnpEventoGovernance) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpEventoGovernance instance) {
|
||||
log.debug("attaching dirty MnpEventoGovernance instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpEventoGovernance instance) {
|
||||
log.debug("attaching clean MnpEventoGovernance instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpFlussoDest;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpFlussoDest.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpFlussoDest
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpFlussoDestDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpFlussoDestDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String TIPO_FLUSSO = "tipoFlusso";
|
||||
|
||||
public static final String DESTINATARIO = "destinatario";
|
||||
|
||||
public void save(MnpFlussoDest transientInstance) {
|
||||
log.debug("saving MnpFlussoDest instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpFlussoDest persistentInstance) {
|
||||
log.debug("deleting MnpFlussoDest instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpFlussoDest findById(java.lang.Long id) {
|
||||
log.debug("getting MnpFlussoDest instance with id: " + id);
|
||||
try {
|
||||
MnpFlussoDest instance = (MnpFlussoDest) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpFlussoDest", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpFlussoDest instance) {
|
||||
log.debug("finding MnpFlussoDest instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpFlussoDest").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpFlussoDest instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpFlussoDest as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByTipoFlusso(Object tipoFlusso) {
|
||||
return findByProperty(TIPO_FLUSSO, tipoFlusso);
|
||||
}
|
||||
|
||||
public List findByDestinatario(Object destinatario) {
|
||||
return findByProperty(DESTINATARIO, destinatario);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpFlussoDest instances");
|
||||
try {
|
||||
String queryString = "from MnpFlussoDest";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpFlussoDest merge(MnpFlussoDest detachedInstance) {
|
||||
log.debug("merging MnpFlussoDest instance");
|
||||
try {
|
||||
MnpFlussoDest result = (MnpFlussoDest) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpFlussoDest instance) {
|
||||
log.debug("attaching dirty MnpFlussoDest instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpFlussoDest instance) {
|
||||
log.debug("attaching clean MnpFlussoDest instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichDonTcExt;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestRichDonTcExt.
|
||||
*
|
||||
* @see it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonTcExt
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestRichDonTcExtDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestRichDonTcExtDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE_XML_TC = "nomeFileXmlTc";
|
||||
|
||||
public void save(MnpGestRichDonTcExt transientInstance) {
|
||||
log.debug("saving MnpGestRichDonTcExt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichDonTcExt persistentInstance) {
|
||||
log.debug("deleting MnpGestRichDonTcExt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichDonTcExt findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestRichDonTcExt instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichDonTcExt instance = (MnpGestRichDonTcExt) getSession()
|
||||
.get("it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonTcExt",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestRichDonTcExt instance) {
|
||||
log.debug("finding MnpGestRichDonTcExt instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonTcExt").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichDonTcExt instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestRichDonTcExt as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFileXmlTc(Object nomeFileXmlTc) {
|
||||
return findByProperty(NOME_FILE_XML_TC, nomeFileXmlTc);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestRichDonTcExt instances");
|
||||
try {
|
||||
String queryString = "from MnpGestRichDonTcExt";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichDonTcExt merge(MnpGestRichDonTcExt detachedInstance) {
|
||||
log.debug("merging MnpGestRichDonTcExt instance");
|
||||
try {
|
||||
MnpGestRichDonTcExt result = (MnpGestRichDonTcExt) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestRichDonTcExt instance) {
|
||||
log.debug("attaching dirty MnpGestRichDonTcExt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichDonTcExt instance) {
|
||||
log.debug("attaching clean MnpGestRichDonTcExt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,154 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichDonVirtTc;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestRichDonVirtTc.
|
||||
*
|
||||
* @see it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonVirtTc
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestRichDonVirtTcDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestRichDonVirtTcDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String CREDITO = "credito";
|
||||
|
||||
public static final String VERSION = "version";
|
||||
|
||||
public void save(MnpGestRichDonVirtTc transientInstance) {
|
||||
log.debug("saving MnpGestRichDonVirtTc instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichDonVirtTc persistentInstance) {
|
||||
log.debug("deleting MnpGestRichDonVirtTc instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichDonVirtTc findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestRichDonVirtTc instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichDonVirtTc instance = (MnpGestRichDonVirtTc) getSession()
|
||||
.get("it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonVirtTc",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestRichDonVirtTc instance) {
|
||||
log.debug("finding MnpGestRichDonVirtTc instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichDonVirtTc").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichDonVirtTc instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestRichDonVirtTc as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByCredito(Object credito) {
|
||||
return findByProperty(CREDITO, credito);
|
||||
}
|
||||
|
||||
public List findByVersion(Object version) {
|
||||
return findByProperty(VERSION, version);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestRichDonVirtTc instances");
|
||||
try {
|
||||
String queryString = "from MnpGestRichDonVirtTc";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichDonVirtTc merge(MnpGestRichDonVirtTc detachedInstance) {
|
||||
log.debug("merging MnpGestRichDonVirtTc instance");
|
||||
try {
|
||||
MnpGestRichDonVirtTc result = (MnpGestRichDonVirtTc) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestRichDonVirtTc instance) {
|
||||
log.debug("attaching dirty MnpGestRichDonVirtTc instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichDonVirtTc instance) {
|
||||
log.debug("attaching clean MnpGestRichDonVirtTc instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
// Generated 24-mar-2009 12.39.40 by Hibernate Tools Customizzato per MNP da C.A. 3.2.0.CR1
|
||||
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichDonorVirt;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
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.Example;
|
||||
|
||||
public class MnpGestRichDonorVirtDAO extends BaseHibernateTestDAO{
|
||||
|
||||
protected static final Log log = LogFactory.getLog(MnpGestRichDonorVirtDAO.class);
|
||||
|
||||
|
||||
public void save(MnpGestRichDonorVirt transientInstance) {
|
||||
log.debug("saving MnpGestRichDonorVirt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichDonorVirt instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "select model from MnpGestRichDonorVirt 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 MnpGestRichDonorVirt ");
|
||||
try {
|
||||
String queryString = " from MnpGestRichDonorVirt";
|
||||
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(MnpGestRichDonorVirt instance) {
|
||||
log.debug("attaching dirty MnpGestRichDonorVirt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichDonorVirt instance) {
|
||||
log.debug("attaching clean MnpGestRichDonorVirt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichDonorVirt persistentInstance) {
|
||||
log.debug("deleting MnpGestRichDonorVirt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichDonorVirt merge(MnpGestRichDonorVirt detachedInstance) {
|
||||
log.debug("merging MnpGestRichDonorVirt instance");
|
||||
try {
|
||||
MnpGestRichDonorVirt result = (MnpGestRichDonorVirt) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCriteria(List criterion) {
|
||||
log.debug("finding MnpGestRichDonorVirt instance by criteria");
|
||||
try {
|
||||
Criteria crit = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpGestRichDonorVirt");
|
||||
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 MnpGestRichDonorVirt findById( java.lang.String id) {
|
||||
log.debug("getting MnpGestRichDonorVirt instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichDonorVirt instance = (MnpGestRichDonorVirt) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.MnpGestRichDonorVirt", 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 findByExample(MnpGestRichDonorVirt instance) {
|
||||
log.debug("finding MnpGestRichDonorVirt instance by example");
|
||||
try {
|
||||
List results = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpGestRichDonorVirt")
|
||||
.add(Example.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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* esegue le query su DB senza aspettare la commit JTA
|
||||
*/
|
||||
public void flush() {
|
||||
getSession().flush();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,160 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichRecTc;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestRichRecTc.
|
||||
*
|
||||
* @see it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTc
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestRichRecTcDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGestRichRecTcDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String CREDITO = "credito";
|
||||
|
||||
public static final String FLAG_VERIFICA_CREDITO_ANOMALO = "flagVerificaCreditoAnomalo";
|
||||
|
||||
public static final String VERSION = "version";
|
||||
|
||||
public void save(MnpGestRichRecTc transientInstance) {
|
||||
log.debug("saving MnpGestRichRecTc instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichRecTc persistentInstance) {
|
||||
log.debug("deleting MnpGestRichRecTc instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecTc findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestRichRecTc instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichRecTc instance = (MnpGestRichRecTc) getSession().get(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTc", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestRichRecTc instance) {
|
||||
log.debug("finding MnpGestRichRecTc instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTc").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichRecTc instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecTc as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByCredito(Object credito) {
|
||||
return findByProperty(CREDITO, credito);
|
||||
}
|
||||
|
||||
public List findByFlagVerificaCreditoAnomalo(
|
||||
Object flagVerificaCreditoAnomalo) {
|
||||
return findByProperty(FLAG_VERIFICA_CREDITO_ANOMALO,
|
||||
flagVerificaCreditoAnomalo);
|
||||
}
|
||||
|
||||
public List findByVersion(Object version) {
|
||||
return findByProperty(VERSION, version);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestRichRecTc instances");
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecTc";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecTc merge(MnpGestRichRecTc detachedInstance) {
|
||||
log.debug("merging MnpGestRichRecTc instance");
|
||||
try {
|
||||
MnpGestRichRecTc result = (MnpGestRichRecTc) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestRichRecTc instance) {
|
||||
log.debug("attaching dirty MnpGestRichRecTc instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichRecTc instance) {
|
||||
log.debug("attaching clean MnpGestRichRecTc instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichRecTcExt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestRichRecTcExt.
|
||||
*
|
||||
* @see it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTcExt
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestRichRecTcExtDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestRichRecTcExtDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String NOME_FILE_XML_TC = "nomeFileXmlTc";
|
||||
|
||||
public void save(MnpGestRichRecTcExt transientInstance) {
|
||||
log.debug("saving MnpGestRichRecTcExt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichRecTcExt persistentInstance) {
|
||||
log.debug("deleting MnpGestRichRecTcExt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecTcExt findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestRichRecTcExt instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichRecTcExt instance = (MnpGestRichRecTcExt) getSession()
|
||||
.get("it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTcExt",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestRichRecTcExt instance) {
|
||||
log.debug("finding MnpGestRichRecTcExt instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecTcExt").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichRecTcExt instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecTcExt as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByNomeFileXmlTc(Object nomeFileXmlTc) {
|
||||
return findByProperty(NOME_FILE_XML_TC, nomeFileXmlTc);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestRichRecTcExt instances");
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecTcExt";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecTcExt merge(MnpGestRichRecTcExt detachedInstance) {
|
||||
log.debug("merging MnpGestRichRecTcExt instance");
|
||||
try {
|
||||
MnpGestRichRecTcExt result = (MnpGestRichRecTcExt) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestRichRecTcExt instance) {
|
||||
log.debug("attaching dirty MnpGestRichRecTcExt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichRecTcExt instance) {
|
||||
log.debug("attaching clean MnpGestRichRecTcExt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,193 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
// Generated 24-mar-2009 12.39.40 by Hibernate Tools Customizzato per MNP da C.A. 3.2.0.CR1
|
||||
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichRecVirt;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
|
||||
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.Example;
|
||||
import org.hibernate.criterion.Restrictions;
|
||||
|
||||
public class MnpGestRichRecVirtDAO extends BaseHibernateTestDAO{
|
||||
|
||||
protected static final Log log = LogFactory.getLog(MnpGestRichRecVirtDAO.class);
|
||||
|
||||
|
||||
public void save(MnpGestRichRecVirt transientInstance) {
|
||||
log.debug("saving MnpGestRichRecVirt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichRecVirt instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "select model from MnpGestRichRecVirt 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 MnpGestRichRecVirt ");
|
||||
try {
|
||||
String queryString = " from MnpGestRichRecVirt";
|
||||
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(MnpGestRichRecVirt instance) {
|
||||
log.debug("attaching dirty MnpGestRichRecVirt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichRecVirt instance) {
|
||||
log.debug("attaching clean MnpGestRichRecVirt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichRecVirt persistentInstance) {
|
||||
log.debug("deleting MnpGestRichRecVirt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecVirt merge(MnpGestRichRecVirt detachedInstance) {
|
||||
log.debug("merging MnpGestRichRecVirt instance");
|
||||
try {
|
||||
MnpGestRichRecVirt result = (MnpGestRichRecVirt) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCriteria(List criterion) {
|
||||
log.debug("finding MnpGestRichRecVirt instance by criteria");
|
||||
try {
|
||||
Criteria crit = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpGestRichRecVirt");
|
||||
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 MnpGestRichRecVirt findById( java.lang.String id) {
|
||||
log.debug("getting MnpGestRichRecVirt instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichRecVirt instance = (MnpGestRichRecVirt) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.MnpGestRichRecVirt", 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 findByExample(MnpGestRichRecVirt instance) {
|
||||
log.debug("finding MnpGestRichRecVirt instance by example");
|
||||
try {
|
||||
List results = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.MnpGestRichRecVirt")
|
||||
.add(Example.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();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param businessId
|
||||
* @return
|
||||
*/
|
||||
public List findByBusinessId(String businessId) {
|
||||
|
||||
List criterion = new ArrayList();
|
||||
criterion.add(Restrictions.eq("businessIdRecipient", businessId));
|
||||
return findByCriteria(criterion);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,162 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestRichRecVirtTc;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestRichRecVirtTc.
|
||||
*
|
||||
* @see it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecVirtTc
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestRichRecVirtTcDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestRichRecVirtTcDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String CREDITO = "credito";
|
||||
|
||||
public static final String FLAG_VERIFICA_CREDITO_ANOMALO = "flagVerificaCreditoAnomalo";
|
||||
|
||||
public static final String VERSION = "version";
|
||||
|
||||
public void save(MnpGestRichRecVirtTc transientInstance) {
|
||||
log.debug("saving MnpGestRichRecVirtTc instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestRichRecVirtTc persistentInstance) {
|
||||
log.debug("deleting MnpGestRichRecVirtTc instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecVirtTc findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestRichRecVirtTc instance with id: " + id);
|
||||
try {
|
||||
MnpGestRichRecVirtTc instance = (MnpGestRichRecVirtTc) getSession()
|
||||
.get("it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecVirtTc",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestRichRecVirtTc instance) {
|
||||
log.debug("finding MnpGestRichRecVirtTc instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.obj.dao.db.hb.MnpGestRichRecVirtTc").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestRichRecVirtTc instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecVirtTc as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByCredito(Object credito) {
|
||||
return findByProperty(CREDITO, credito);
|
||||
}
|
||||
|
||||
public List findByFlagVerificaCreditoAnomalo(
|
||||
Object flagVerificaCreditoAnomalo) {
|
||||
return findByProperty(FLAG_VERIFICA_CREDITO_ANOMALO,
|
||||
flagVerificaCreditoAnomalo);
|
||||
}
|
||||
|
||||
public List findByVersion(Object version) {
|
||||
return findByProperty(VERSION, version);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestRichRecVirtTc instances");
|
||||
try {
|
||||
String queryString = "from MnpGestRichRecVirtTc";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestRichRecVirtTc merge(MnpGestRichRecVirtTc detachedInstance) {
|
||||
log.debug("merging MnpGestRichRecVirtTc instance");
|
||||
try {
|
||||
MnpGestRichRecVirtTc result = (MnpGestRichRecVirtTc) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestRichRecVirtTc instance) {
|
||||
log.debug("attaching dirty MnpGestRichRecVirtTc instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestRichRecVirtTc instance) {
|
||||
log.debug("attaching clean MnpGestRichRecVirtTc instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,149 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneFileAom;
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneFileAomId;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneFileAom.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneFileAom
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneFileAomDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneFileAomDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String AOM = "aom";
|
||||
|
||||
public static final String VERSION = "version";
|
||||
|
||||
public void save(MnpGestioneFileAom transientInstance) {
|
||||
log.debug("saving MnpGestioneFileAom instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneFileAom persistentInstance) {
|
||||
log.debug("deleting MnpGestioneFileAom instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneFileAom findById(
|
||||
MnpGestioneFileAomId id) {
|
||||
log.debug("getting MnpGestioneFileAom instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneFileAom instance = (MnpGestioneFileAom) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneFileAom", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneFileAom instance) {
|
||||
log.debug("finding MnpGestioneFileAom instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGestioneFileAom").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneFileAom instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneFileAom as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByAom(Object aom) {
|
||||
return findByProperty(AOM, aom);
|
||||
}
|
||||
|
||||
public List findByVersion(Object version) {
|
||||
return findByProperty(VERSION, version);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneFileAom instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneFileAom";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneFileAom merge(MnpGestioneFileAom detachedInstance) {
|
||||
log.debug("merging MnpGestioneFileAom instance");
|
||||
try {
|
||||
MnpGestioneFileAom result = (MnpGestioneFileAom) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneFileAom instance) {
|
||||
log.debug("attaching dirty MnpGestioneFileAom instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneFileAom instance) {
|
||||
log.debug("attaching clean MnpGestioneFileAom instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,180 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichCessPort;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichCessPort.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichCessPort
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichCessPortDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichCessPortDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TIPO_MESSAGGIO = "tipoMessaggio";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_RICHIESTA_RECIPIENT = "codiceRichiestaRecipient";
|
||||
|
||||
public static final String DA_NOTIFICARE_AOM = "daNotificareAom";
|
||||
|
||||
public static final String DA_NOTIFICARE_NPTS = "daNotificareNpts";
|
||||
|
||||
public void save(MnpGestioneRichCessPort transientInstance) {
|
||||
log.debug("saving MnpGestioneRichCessPort instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichCessPort persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichCessPort instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichCessPort findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichCessPort instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichCessPort instance = (MnpGestioneRichCessPort) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneRichCessPort", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichCessPort instance) {
|
||||
log.debug("finding MnpGestioneRichCessPort instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGestioneRichCessPort").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichCessPort instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichCessPort as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTipoMessaggio(Object tipoMessaggio) {
|
||||
return findByProperty(TIPO_MESSAGGIO, tipoMessaggio);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaRecipient(Object codiceRichiestaRecipient) {
|
||||
return findByProperty(CODICE_RICHIESTA_RECIPIENT,
|
||||
codiceRichiestaRecipient);
|
||||
}
|
||||
|
||||
public List findByDaNotificareAom(Object daNotificareAom) {
|
||||
return findByProperty(DA_NOTIFICARE_AOM, daNotificareAom);
|
||||
}
|
||||
|
||||
public List findByDaNotificareNpts(Object daNotificareNpts) {
|
||||
return findByProperty(DA_NOTIFICARE_NPTS, daNotificareNpts);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichCessPort instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichCessPort";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichCessPort merge(
|
||||
MnpGestioneRichCessPort detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichCessPort instance");
|
||||
try {
|
||||
MnpGestioneRichCessPort result = (MnpGestioneRichCessPort) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichCessPort instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichCessPort instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichCessPort instance) {
|
||||
log.debug("attaching clean MnpGestioneRichCessPort instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaCess;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiestaCess.
|
||||
*
|
||||
* @author MyEclipse Persistence Tools
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiestaCess
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaCessDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGestioneRichiestaCessDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TIPO_MESSAGGIO = "tipoMessaggio";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_RICHIESTA_RECIPIENT = "codiceRichiestaRecipient";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public static final String TIM_DONOR = "timDonor";
|
||||
|
||||
public void save(MnpGestioneRichiestaCess transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiestaCess instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiestaCess persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiestaCess instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaCess findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichiestaCess instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichiestaCess instance =
|
||||
(MnpGestioneRichiestaCess) getSession().get("it.valueteam.dao.db.hb.MnpGestioneRichiestaCess", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiestaCess instance) {
|
||||
log.debug("finding MnpGestioneRichiestaCess instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria("it.valueteam.dao.db.hb.MnpGestioneRichiestaCess").add(Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichiestaCess instance with property: " + propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaCess as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTipoMessaggio(Object tipoMessaggio) {
|
||||
return findByProperty(TIPO_MESSAGGIO, tipoMessaggio);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT, codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaRecipient(Object codiceRichiestaRecipient) {
|
||||
return findByProperty(CODICE_RICHIESTA_RECIPIENT, codiceRichiestaRecipient);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findByTimDonor(Object timDonor) {
|
||||
return findByProperty(TIM_DONOR, timDonor);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiestaCess instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaCess";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaCess merge(MnpGestioneRichiestaCess detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiestaCess instance");
|
||||
try {
|
||||
MnpGestioneRichiestaCess result = (MnpGestioneRichiestaCess) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiestaCess instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiestaCess instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiestaCess instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiestaCess instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiesta;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiesta.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiesta
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichiestaDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TIPO_CLIENTE = "tipoCliente";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String COD_CONTROLLO_PRESAINCARICO = "codControlloPresaincarico";
|
||||
|
||||
public static final String CODICE_CONTROLLO_VALIDAZIONE = "codiceControlloValidazione";
|
||||
|
||||
public static final String CODICERIFIUTOVALIDAZIONE = "codicerifiutovalidazione";
|
||||
|
||||
public static final String CODICE_CONTROLLO_ESPLETAMENTO = "codiceControlloEspletamento";
|
||||
|
||||
public static final String ORA_CUT_OVER = "oraCutOver";
|
||||
|
||||
public static final String TIPO_MESSAGGIO = "tipoMessaggio";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String CODICE_RICHIESTA_RECIPIENT = "codiceRichiestaRecipient";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String ADDIZIONALE1 = "addizionale1";
|
||||
|
||||
public static final String ADDIZIONALE2 = "addizionale2";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String CODICE_PRE_POST_PAGATO = "codicePrePostPagato";
|
||||
|
||||
public static final String CODICE_ANALOGICO_DIGITALE = "codiceAnalogicoDigitale";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String RAGIONE_SOCIALE = "ragioneSociale";
|
||||
|
||||
public static final String TIPO_DOCUMENTO = "tipoDocumento";
|
||||
|
||||
public static final String NUMERO_DOCUMENTO = "numeroDocumento";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER = "iccdSerialNumber";
|
||||
|
||||
public static final String NOME_OT = "nomeOt";
|
||||
|
||||
public static final String ABBONATO_PREPAGATO = "abbonatoPrepagato";
|
||||
|
||||
public static final String SIST_COMP = "sistComp";
|
||||
|
||||
public static final String RICHIESTAADHOCAOM = "richiestaadhocaom";
|
||||
|
||||
public static final String RICHIESTAADHOC = "richiestaadhoc";
|
||||
|
||||
public static final String HOC_UPDATES = "hocUpdates";
|
||||
|
||||
public static final String ICCD_SERIAL_NUMBER_CCRM = "iccdSerialNumberCcrm";
|
||||
|
||||
public static final String DA_NOTIFICARE_ANPTS = "daNotificareANpts";
|
||||
|
||||
public static final String TIPO_PORTING_OUT = "tipoPortingOut";
|
||||
|
||||
public static final String UTENZA_DUAL = "utenzaDual";
|
||||
|
||||
public static final String BUSINESS_CONSUMER = "businessConsumer";
|
||||
|
||||
public static final String MARCAGGIO = "marcaggio";
|
||||
|
||||
public static final String IPOTESI_RIFIUTO = "ipotesiRifiuto";
|
||||
|
||||
public static final String PRIORITY = "priority";
|
||||
|
||||
public static final String SOTTOMARCAGGIO = "sottomarcaggio";
|
||||
|
||||
public static final String BUSINESS_ID = "businessId";
|
||||
|
||||
public static final String PROFILO_UTENZA = "profiloUtenza";
|
||||
|
||||
public static final String FLAG_TC = "flagTc";
|
||||
|
||||
public static final String FLAG_ESP = "flagEsp";
|
||||
|
||||
public static final String CODICE_OPERATORE_DON_EFF = "codiceOperatoreDonEff";
|
||||
|
||||
public static final String CODICE_OPERATORE_REC_EFF = "codiceOperatoreRecEff";
|
||||
|
||||
public void save(MnpGestioneRichiesta transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiesta persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiesta findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichiesta instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichiesta instance = (MnpGestioneRichiesta) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.MnpGestioneRichiesta", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiesta instance) {
|
||||
log.debug("finding MnpGestioneRichiesta instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGestioneRichiesta").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichiesta instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiesta as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTipoCliente(Object tipoCliente) {
|
||||
return findByProperty(TIPO_CLIENTE, tipoCliente);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByCodControlloPresaincarico(Object codControlloPresaincarico) {
|
||||
return findByProperty(COD_CONTROLLO_PRESAINCARICO,
|
||||
codControlloPresaincarico);
|
||||
}
|
||||
|
||||
public List findByCodiceControlloValidazione(
|
||||
Object codiceControlloValidazione) {
|
||||
return findByProperty(CODICE_CONTROLLO_VALIDAZIONE,
|
||||
codiceControlloValidazione);
|
||||
}
|
||||
|
||||
public List findByCodicerifiutovalidazione(Object codicerifiutovalidazione) {
|
||||
return findByProperty(CODICERIFIUTOVALIDAZIONE,
|
||||
codicerifiutovalidazione);
|
||||
}
|
||||
|
||||
public List findByCodiceControlloEspletamento(
|
||||
Object codiceControlloEspletamento) {
|
||||
return findByProperty(CODICE_CONTROLLO_ESPLETAMENTO,
|
||||
codiceControlloEspletamento);
|
||||
}
|
||||
|
||||
public List findByOraCutOver(Object oraCutOver) {
|
||||
return findByProperty(ORA_CUT_OVER, oraCutOver);
|
||||
}
|
||||
|
||||
public List findByTipoMessaggio(Object tipoMessaggio) {
|
||||
return findByProperty(TIPO_MESSAGGIO, tipoMessaggio);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaRecipient(Object codiceRichiestaRecipient) {
|
||||
return findByProperty("codiceRichiestaRecipient",
|
||||
codiceRichiestaRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByAddizionale1(Object addizionale1) {
|
||||
return findByProperty(ADDIZIONALE1, addizionale1);
|
||||
}
|
||||
|
||||
public List findByAddizionale2(Object addizionale2) {
|
||||
return findByProperty(ADDIZIONALE2, addizionale2);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodicePrePostPagato(Object codicePrePostPagato) {
|
||||
return findByProperty(CODICE_PRE_POST_PAGATO, codicePrePostPagato);
|
||||
}
|
||||
|
||||
public List findByCodiceAnalogicoDigitale(Object codiceAnalogicoDigitale) {
|
||||
return findByProperty(CODICE_ANALOGICO_DIGITALE,
|
||||
codiceAnalogicoDigitale);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByRagioneSociale(Object ragioneSociale) {
|
||||
return findByProperty(RAGIONE_SOCIALE, ragioneSociale);
|
||||
}
|
||||
|
||||
public List findByTipoDocumento(Object tipoDocumento) {
|
||||
return findByProperty(TIPO_DOCUMENTO, tipoDocumento);
|
||||
}
|
||||
|
||||
public List findByNumeroDocumento(Object numeroDocumento) {
|
||||
return findByProperty(NUMERO_DOCUMENTO, numeroDocumento);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumber(Object iccdSerialNumber) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER, iccdSerialNumber);
|
||||
}
|
||||
|
||||
public List findByNomeOt(Object nomeOt) {
|
||||
return findByProperty(NOME_OT, nomeOt);
|
||||
}
|
||||
|
||||
public List findByAbbonatoPrepagato(Object abbonatoPrepagato) {
|
||||
return findByProperty(ABBONATO_PREPAGATO, abbonatoPrepagato);
|
||||
}
|
||||
|
||||
public List findBySistComp(Object sistComp) {
|
||||
return findByProperty(SIST_COMP, sistComp);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhocaom(Object richiestaadhocaom) {
|
||||
return findByProperty(RICHIESTAADHOCAOM, richiestaadhocaom);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhoc(Object richiestaadhoc) {
|
||||
return findByProperty(RICHIESTAADHOC, richiestaadhoc);
|
||||
}
|
||||
|
||||
public List findByHocUpdates(Object hocUpdates) {
|
||||
return findByProperty(HOC_UPDATES, hocUpdates);
|
||||
}
|
||||
|
||||
public List findByIccdSerialNumberCcrm(Object iccdSerialNumberCcrm) {
|
||||
return findByProperty(ICCD_SERIAL_NUMBER_CCRM, iccdSerialNumberCcrm);
|
||||
}
|
||||
|
||||
public List findByDaNotificareANpts(Object daNotificareANpts) {
|
||||
return findByProperty(DA_NOTIFICARE_ANPTS, daNotificareANpts);
|
||||
}
|
||||
|
||||
public List findByTipoPortingOut(Object tipoPortingOut) {
|
||||
return findByProperty(TIPO_PORTING_OUT, tipoPortingOut);
|
||||
}
|
||||
|
||||
public List findByUtenzaDual(Object utenzaDual) {
|
||||
return findByProperty(UTENZA_DUAL, utenzaDual);
|
||||
}
|
||||
|
||||
public List findByBusinessConsumer(Object businessConsumer) {
|
||||
return findByProperty(BUSINESS_CONSUMER, businessConsumer);
|
||||
}
|
||||
|
||||
public List findByMarcaggio(Object marcaggio) {
|
||||
return findByProperty(MARCAGGIO, marcaggio);
|
||||
}
|
||||
|
||||
public List findByIpotesiRifiuto(Object ipotesiRifiuto) {
|
||||
return findByProperty(IPOTESI_RIFIUTO, ipotesiRifiuto);
|
||||
}
|
||||
|
||||
public List findByPriority(Object priority) {
|
||||
return findByProperty(PRIORITY, priority);
|
||||
}
|
||||
|
||||
public List findBySottomarcaggio(Object sottomarcaggio) {
|
||||
return findByProperty(SOTTOMARCAGGIO, sottomarcaggio);
|
||||
}
|
||||
|
||||
public List findByBusinessId(Object businessId) {
|
||||
return findByProperty(BUSINESS_ID, businessId);
|
||||
}
|
||||
|
||||
public List findByProfiloUtenza(Object profiloUtenza) {
|
||||
return findByProperty(PROFILO_UTENZA, profiloUtenza);
|
||||
}
|
||||
|
||||
public List findByFlagTc(Object flagTc) {
|
||||
return findByProperty(FLAG_TC, flagTc);
|
||||
}
|
||||
|
||||
public List findByFlagEsp(Object flagEsp) {
|
||||
return findByProperty(FLAG_ESP, flagEsp);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonEff(Object codiceOperatoreDonEff) {
|
||||
return findByProperty(CODICE_OPERATORE_DON_EFF, codiceOperatoreDonEff);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecEff(Object codiceOperatoreRecEff) {
|
||||
return findByProperty(CODICE_OPERATORE_REC_EFF, codiceOperatoreRecEff);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiesta ");
|
||||
try {
|
||||
String queryString = " from MnpGestioneRichiesta";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all name failed", re);
|
||||
throw re;
|
||||
}finally {
|
||||
closeSession();
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiesta merge(MnpGestioneRichiesta detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiesta instance");
|
||||
try {
|
||||
MnpGestioneRichiesta result = (MnpGestioneRichiesta) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiesta instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiesta instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiesta instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findNumRichiesteByOperatoreTipoCliente(String codiceOperatoreRecipient, String tipoCliente){
|
||||
log.debug("trova numero richieste");
|
||||
try {
|
||||
String queryString = "SELECT g.idRichiesta " +
|
||||
"FROM MnpGestioneRichiesta g WHERE g.stato = 1 " +
|
||||
"AND (g.richiestaadhocaom = 0 AND g.richiestaadhoc = 0) " +
|
||||
"AND g.codControlloPresaincarico = -1 AND " +
|
||||
"g.tipoCliente like ? AND g.codiceOperatoreRecipient = ?";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
queryObject.setParameter(0, tipoCliente);
|
||||
queryObject.setParameter(1, codiceOperatoreRecipient);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find by id richiesta failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,142 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaExt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiestaExt.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiestaExt
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaExtDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichiestaExtDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO_LINEA = "statoLinea";
|
||||
|
||||
public void save(MnpGestioneRichiestaExt transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiestaExt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiestaExt persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiestaExt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaExt findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichiestaExt instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichiestaExt instance = (MnpGestioneRichiestaExt) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneRichiestaExt", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiestaExt instance) {
|
||||
log.debug("finding MnpGestioneRichiestaExt instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGestioneRichiestaExt").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichiestaExt instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaExt as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStatoLinea(Object statoLinea) {
|
||||
return findByProperty(STATO_LINEA, statoLinea);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiestaExt instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaExt";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaExt merge(
|
||||
MnpGestioneRichiestaExt detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiestaExt instance");
|
||||
try {
|
||||
MnpGestioneRichiestaExt result = (MnpGestioneRichiestaExt) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiestaExt instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiestaExt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiestaExt instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiestaExt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,217 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaPorting;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiestaPorting.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiestaPorting
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaPortingDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichiestaPortingDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String CODICE_CONTROLLO_ESPLETAMENTO = "codiceControlloEspletamento";
|
||||
|
||||
public static final String ORA_CUT_OVER = "oraCutOver";
|
||||
|
||||
public static final String TIPO_MESSAGGIO = "tipoMessaggio";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String CODICE_RICHIESTA_RECIPIENT = "codiceRichiestaRecipient";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String ADDIZIONALE1 = "addizionale1";
|
||||
|
||||
public static final String ADDIZIONALE2 = "addizionale2";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public void save(MnpGestioneRichiestaPorting transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiestaPorting instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiestaPorting persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiestaPorting instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaPorting findById(java.lang.String id) {
|
||||
log
|
||||
.debug("getting MnpGestioneRichiestaPorting instance with id: "
|
||||
+ id);
|
||||
try {
|
||||
MnpGestioneRichiestaPorting instance = (MnpGestioneRichiestaPorting) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneRichiestaPorting",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiestaPorting instance) {
|
||||
log.debug("finding MnpGestioneRichiestaPorting instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGestioneRichiestaPorting").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log
|
||||
.debug("finding MnpGestioneRichiestaPorting instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaPorting as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByCodiceControlloEspletamento(
|
||||
Object codiceControlloEspletamento) {
|
||||
return findByProperty(CODICE_CONTROLLO_ESPLETAMENTO,
|
||||
codiceControlloEspletamento);
|
||||
}
|
||||
|
||||
public List findByOraCutOver(Object oraCutOver) {
|
||||
return findByProperty(ORA_CUT_OVER, oraCutOver);
|
||||
}
|
||||
|
||||
public List findByTipoMessaggio(Object tipoMessaggio) {
|
||||
return findByProperty(TIPO_MESSAGGIO, tipoMessaggio);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaRecipient(Object codiceRichiestaRecipient) {
|
||||
return findByProperty(CODICE_RICHIESTA_RECIPIENT,
|
||||
codiceRichiestaRecipient);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByAddizionale1(Object addizionale1) {
|
||||
return findByProperty(ADDIZIONALE1, addizionale1);
|
||||
}
|
||||
|
||||
public List findByAddizionale2(Object addizionale2) {
|
||||
return findByProperty(ADDIZIONALE2, addizionale2);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiestaPorting instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaPorting";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaPorting merge(
|
||||
MnpGestioneRichiestaPorting detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiestaPorting instance");
|
||||
try {
|
||||
MnpGestioneRichiestaPorting result = (MnpGestioneRichiestaPorting) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiestaPorting instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiestaPorting instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiestaPorting instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiestaPorting instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,400 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaRec;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiestaRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiestaRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichiestaRecDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String STATO = "stato";
|
||||
|
||||
public static final String TIPO_CLIENTE = "tipoCliente";
|
||||
|
||||
public static final String DA_INVIARE = "daInviare";
|
||||
|
||||
public static final String CODICE_OPERATORE_RECIPIENT = "codiceOperatoreRecipient";
|
||||
|
||||
public static final String CODICE_OPERATORE_DONATING = "codiceOperatoreDonating";
|
||||
|
||||
public static final String CODICE_GRUPPO = "codiceGruppo";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String ADDIZIONALE1 = "addizionale1";
|
||||
|
||||
public static final String ADDIZIONALE2 = "addizionale2";
|
||||
|
||||
public static final String CODICE_FISCALE_PARTITA_IVA = "codiceFiscalePartitaIva";
|
||||
|
||||
public static final String CODICE_PRE_POST_PAGATO = "codicePrePostPagato";
|
||||
|
||||
public static final String CODICE_ANALOGICO_DIGITALE = "codiceAnalogicoDigitale";
|
||||
|
||||
public static final String ORA_CUT_OVER = "oraCutOver";
|
||||
|
||||
public static final String NOME_CLIENTE = "nomeCliente";
|
||||
|
||||
public static final String COGNOME_CLIENTE = "cognomeCliente";
|
||||
|
||||
public static final String RAGIONE_SOCIALE = "ragioneSociale";
|
||||
|
||||
public static final String TIPO_DOCUMENTO = "tipoDocumento";
|
||||
|
||||
public static final String NUMERO_DOCUMENTO = "numeroDocumento";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String ICCID_SERIAL_NUMBER = "iccidSerialNumber";
|
||||
|
||||
public static final String NOME_OT = "nomeOt";
|
||||
|
||||
public static final String DA_NOTIFICARE_BIT = "daNotificareBit";
|
||||
|
||||
public static final String DA_NOTIFICARE_NPTS = "daNotificareNpts";
|
||||
|
||||
public static final String DA_NOTIFICARE_AOM = "daNotificareAom";
|
||||
|
||||
public static final String CODICE_RICHIESTA_BIT = "codiceRichiestaBit";
|
||||
|
||||
public static final String IS_PRESAINCARICO = "isPresaincarico";
|
||||
|
||||
public static final String ESPLETAMENTODONATING = "espletamentodonating";
|
||||
|
||||
public static final String ESPLETAMENTOTERZEPARTI = "espletamentoterzeparti";
|
||||
|
||||
public static final String ESPLETAMENTOMSS = "espletamentomss";
|
||||
|
||||
public static final String CODICERIFIUTOVALIDAZIONE = "codicerifiutovalidazione";
|
||||
|
||||
public static final String IDREQ_INFOBUS = "idreqInfobus";
|
||||
|
||||
public static final String MSISDN_TIM = "msisdnTim";
|
||||
|
||||
public static final String NUMERO_INVII = "numeroInvii";
|
||||
|
||||
public static final String CAUSALE_ACCODAMENTO = "causaleAccodamento";
|
||||
|
||||
public static final String RICHIESTAADHOC = "richiestaadhoc";
|
||||
|
||||
public static final String RICHIESTAADHOCAOM = "richiestaadhocaom";
|
||||
|
||||
public static final String HOC_UPDATES = "hocUpdates";
|
||||
|
||||
public static final String PRIORITY = "priority";
|
||||
|
||||
public static final String OPERATORE_INTERNO = "operatoreInterno";
|
||||
|
||||
public static final String SISTEMA_MITTENTE = "sistemaMittente";
|
||||
|
||||
public static final String TIPO_SERVIZIO_SISTEMA_MITT = "tipoServizioSistemaMitt";
|
||||
|
||||
public static final String BUSINESS_ID = "businessId";
|
||||
|
||||
public static final String PROFILO_RETE = "profiloRete";
|
||||
|
||||
public void save(MnpGestioneRichiestaRec transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiestaRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiestaRec persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiestaRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaRec findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichiestaRec instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichiestaRec instance = (MnpGestioneRichiestaRec) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneRichiestaRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiestaRec instance) {
|
||||
log.debug("finding MnpGestioneRichiestaRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichiestaRec instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaRec as model where model."
|
||||
+ propertyName + "= ?";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
queryObject.setString(0, (String)value);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find by property name failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByStato(Object stato) {
|
||||
return findByProperty(STATO, stato);
|
||||
}
|
||||
|
||||
public List findByTipoCliente(Object tipoCliente) {
|
||||
return findByProperty(TIPO_CLIENTE, tipoCliente);
|
||||
}
|
||||
|
||||
public List findByDaInviare(Object daInviare) {
|
||||
return findByProperty(DA_INVIARE, daInviare);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreRecipient(Object codiceOperatoreRecipient) {
|
||||
return findByProperty(CODICE_OPERATORE_RECIPIENT,
|
||||
codiceOperatoreRecipient);
|
||||
}
|
||||
|
||||
public List findByCodiceOperatoreDonating(Object codiceOperatoreDonating) {
|
||||
return findByProperty(CODICE_OPERATORE_DONATING,
|
||||
codiceOperatoreDonating);
|
||||
}
|
||||
|
||||
public List findByCodiceGruppo(Object codiceGruppo) {
|
||||
return findByProperty(CODICE_GRUPPO, codiceGruppo);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByAddizionale1(Object addizionale1) {
|
||||
return findByProperty(ADDIZIONALE1, addizionale1);
|
||||
}
|
||||
|
||||
public List findByAddizionale2(Object addizionale2) {
|
||||
return findByProperty(ADDIZIONALE2, addizionale2);
|
||||
}
|
||||
|
||||
public List findByCodiceFiscalePartitaIva(Object codiceFiscalePartitaIva) {
|
||||
return findByProperty(CODICE_FISCALE_PARTITA_IVA,
|
||||
codiceFiscalePartitaIva);
|
||||
}
|
||||
|
||||
public List findByCodicePrePostPagato(Object codicePrePostPagato) {
|
||||
return findByProperty(CODICE_PRE_POST_PAGATO, codicePrePostPagato);
|
||||
}
|
||||
|
||||
public List findByCodiceAnalogicoDigitale(Object codiceAnalogicoDigitale) {
|
||||
return findByProperty(CODICE_ANALOGICO_DIGITALE,
|
||||
codiceAnalogicoDigitale);
|
||||
}
|
||||
|
||||
public List findByOraCutOver(Object oraCutOver) {
|
||||
return findByProperty(ORA_CUT_OVER, oraCutOver);
|
||||
}
|
||||
|
||||
public List findByNomeCliente(Object nomeCliente) {
|
||||
return findByProperty(NOME_CLIENTE, nomeCliente);
|
||||
}
|
||||
|
||||
public List findByCognomeCliente(Object cognomeCliente) {
|
||||
return findByProperty(COGNOME_CLIENTE, cognomeCliente);
|
||||
}
|
||||
|
||||
public List findByRagioneSociale(Object ragioneSociale) {
|
||||
return findByProperty(RAGIONE_SOCIALE, ragioneSociale);
|
||||
}
|
||||
|
||||
public List findByTipoDocumento(Object tipoDocumento) {
|
||||
return findByProperty(TIPO_DOCUMENTO, tipoDocumento);
|
||||
}
|
||||
|
||||
public List findByNumeroDocumento(Object numeroDocumento) {
|
||||
return findByProperty(NUMERO_DOCUMENTO, numeroDocumento);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByIccidSerialNumber(Object iccidSerialNumber) {
|
||||
return findByProperty(ICCID_SERIAL_NUMBER, iccidSerialNumber);
|
||||
}
|
||||
|
||||
public List findByNomeOt(Object nomeOt) {
|
||||
return findByProperty(NOME_OT, nomeOt);
|
||||
}
|
||||
|
||||
public List findByDaNotificareBit(Object daNotificareBit) {
|
||||
return findByProperty(DA_NOTIFICARE_BIT, daNotificareBit);
|
||||
}
|
||||
|
||||
public List findByDaNotificareNpts(Object daNotificareNpts) {
|
||||
return findByProperty(DA_NOTIFICARE_NPTS, daNotificareNpts);
|
||||
}
|
||||
|
||||
public List findByDaNotificareAom(Object daNotificareAom) {
|
||||
return findByProperty(DA_NOTIFICARE_AOM, daNotificareAom);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaBit(Object codiceRichiestaBit) {
|
||||
return findByProperty(CODICE_RICHIESTA_BIT, codiceRichiestaBit);
|
||||
}
|
||||
|
||||
public List findByIsPresaincarico(Object isPresaincarico) {
|
||||
return findByProperty(IS_PRESAINCARICO, isPresaincarico);
|
||||
}
|
||||
|
||||
public List findByEspletamentodonating(Object espletamentodonating) {
|
||||
return findByProperty(ESPLETAMENTODONATING, espletamentodonating);
|
||||
}
|
||||
|
||||
public List findByEspletamentoterzeparti(Object espletamentoterzeparti) {
|
||||
return findByProperty(ESPLETAMENTOTERZEPARTI, espletamentoterzeparti);
|
||||
}
|
||||
|
||||
public List findByEspletamentomss(Object espletamentomss) {
|
||||
return findByProperty(ESPLETAMENTOMSS, espletamentomss);
|
||||
}
|
||||
|
||||
public List findByCodicerifiutovalidazione(Object codicerifiutovalidazione) {
|
||||
return findByProperty(CODICERIFIUTOVALIDAZIONE,
|
||||
codicerifiutovalidazione);
|
||||
}
|
||||
|
||||
public List findByIdreqInfobus(Object idreqInfobus) {
|
||||
return findByProperty(IDREQ_INFOBUS, idreqInfobus);
|
||||
}
|
||||
|
||||
public List findByMsisdnTim(Object msisdnTim) {
|
||||
return findByProperty(MSISDN_TIM, msisdnTim);
|
||||
}
|
||||
|
||||
public List findByNumeroInvii(Object numeroInvii) {
|
||||
return findByProperty(NUMERO_INVII, numeroInvii);
|
||||
}
|
||||
|
||||
public List findByCausaleAccodamento(Object causaleAccodamento) {
|
||||
return findByProperty(CAUSALE_ACCODAMENTO, causaleAccodamento);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhoc(Object richiestaadhoc) {
|
||||
return findByProperty(RICHIESTAADHOC, richiestaadhoc);
|
||||
}
|
||||
|
||||
public List findByRichiestaadhocaom(Object richiestaadhocaom) {
|
||||
return findByProperty(RICHIESTAADHOCAOM, richiestaadhocaom);
|
||||
}
|
||||
|
||||
public List findByHocUpdates(Object hocUpdates) {
|
||||
return findByProperty(HOC_UPDATES, hocUpdates);
|
||||
}
|
||||
|
||||
public List findByPriority(Object priority) {
|
||||
return findByProperty(PRIORITY, priority);
|
||||
}
|
||||
|
||||
public List findByOperatoreInterno(Object operatoreInterno) {
|
||||
return findByProperty(OPERATORE_INTERNO, operatoreInterno);
|
||||
}
|
||||
|
||||
public List findBySistemaMittente(Object sistemaMittente) {
|
||||
return findByProperty(SISTEMA_MITTENTE, sistemaMittente);
|
||||
}
|
||||
|
||||
public List findByTipoServizioSistemaMitt(Object tipoServizioSistemaMitt) {
|
||||
return findByProperty(TIPO_SERVIZIO_SISTEMA_MITT,
|
||||
tipoServizioSistemaMitt);
|
||||
}
|
||||
|
||||
public List findByBusinessId(Object businessId) {
|
||||
return findByProperty(BUSINESS_ID, businessId);
|
||||
}
|
||||
|
||||
public List findByProfiloRete(Object profiloRete) {
|
||||
return findByProperty(PROFILO_RETE, profiloRete);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiestaRec instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaRec merge(
|
||||
MnpGestioneRichiestaRec detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiestaRec instance");
|
||||
try {
|
||||
MnpGestioneRichiestaRec result = (MnpGestioneRichiestaRec) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiestaRec instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiestaRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiestaRec instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiestaRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGestioneRichiestaRecExt;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGestioneRichiestaRecExt.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGestioneRichiestaRecExt
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGestioneRichiestaRecExtDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGestioneRichiestaRecExtDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String CODICE_DEALER = "codiceDealer";
|
||||
|
||||
public static final String COD_PROFILO_TARIFFARIO = "codProfiloTariffario";
|
||||
|
||||
public static final String DESC_PROFILO_TARIFFARIO = "descProfiloTariffario";
|
||||
|
||||
public static final String COD_OFFERTA = "codOfferta";
|
||||
|
||||
public static final String DESC_OFFERTA = "descOfferta";
|
||||
|
||||
public static final String COD_ACCORDO = "codAccordo";
|
||||
|
||||
public static final String DESC_ACCORDO = "descAccordo";
|
||||
|
||||
public static final String DESCANALE_VENDITA = "descanaleVendita";
|
||||
|
||||
public static final String CODICE_ORDINE = "codiceOrdine";
|
||||
|
||||
public static final String TIPO_OPERAZIONE = "tipoOperazione";
|
||||
|
||||
public void save(MnpGestioneRichiestaRecExt transientInstance) {
|
||||
log.debug("saving MnpGestioneRichiestaRecExt instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGestioneRichiestaRecExt persistentInstance) {
|
||||
log.debug("deleting MnpGestioneRichiestaRecExt instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaRecExt findById(java.lang.String id) {
|
||||
log.debug("getting MnpGestioneRichiestaRecExt instance with id: " + id);
|
||||
try {
|
||||
MnpGestioneRichiestaRecExt instance = (MnpGestioneRichiestaRecExt) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGestioneRichiestaRecExt",
|
||||
id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGestioneRichiestaRecExt instance) {
|
||||
log.debug("finding MnpGestioneRichiestaRecExt instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGestioneRichiestaRecExt").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGestioneRichiestaRecExt instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaRecExt as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByCodiceDealer(Object codiceDealer) {
|
||||
return findByProperty(CODICE_DEALER, codiceDealer);
|
||||
}
|
||||
|
||||
public List findByCodProfiloTariffario(Object codProfiloTariffario) {
|
||||
return findByProperty(COD_PROFILO_TARIFFARIO, codProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByDescProfiloTariffario(Object descProfiloTariffario) {
|
||||
return findByProperty(DESC_PROFILO_TARIFFARIO, descProfiloTariffario);
|
||||
}
|
||||
|
||||
public List findByCodOfferta(Object codOfferta) {
|
||||
return findByProperty(COD_OFFERTA, codOfferta);
|
||||
}
|
||||
|
||||
public List findByDescOfferta(Object descOfferta) {
|
||||
return findByProperty(DESC_OFFERTA, descOfferta);
|
||||
}
|
||||
|
||||
public List findByCodAccordo(Object codAccordo) {
|
||||
return findByProperty(COD_ACCORDO, codAccordo);
|
||||
}
|
||||
|
||||
public List findByDescAccordo(Object descAccordo) {
|
||||
return findByProperty(DESC_ACCORDO, descAccordo);
|
||||
}
|
||||
|
||||
public List findByDescanaleVendita(Object descanaleVendita) {
|
||||
return findByProperty(DESCANALE_VENDITA, descanaleVendita);
|
||||
}
|
||||
|
||||
public List findByCodiceOrdine(Object codiceOrdine) {
|
||||
return findByProperty(CODICE_ORDINE, codiceOrdine);
|
||||
}
|
||||
|
||||
public List findByTipoOperazione(Object tipoOperazione) {
|
||||
return findByProperty(TIPO_OPERAZIONE, tipoOperazione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGestioneRichiestaRecExt instances");
|
||||
try {
|
||||
String queryString = "from MnpGestioneRichiestaRecExt";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGestioneRichiestaRecExt merge(
|
||||
MnpGestioneRichiestaRecExt detachedInstance) {
|
||||
log.debug("merging MnpGestioneRichiestaRecExt instance");
|
||||
try {
|
||||
MnpGestioneRichiestaRecExt result = (MnpGestioneRichiestaRecExt) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGestioneRichiestaRecExt instance) {
|
||||
log.debug("attaching dirty MnpGestioneRichiestaRecExt instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGestioneRichiestaRecExt instance) {
|
||||
log.debug("attaching clean MnpGestioneRichiestaRecExt instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispAttCessIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispAttCessIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispAttCessIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispAttCessInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGispAttCessInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String NOME_RICHIESTA = "nomeRichiesta";
|
||||
|
||||
public static final String ESITO_CAS = "esitoCas";
|
||||
|
||||
public static final String DETTAGLIO_ESITO = "dettaglioEsito";
|
||||
|
||||
public static final String DESCRIZIONE_ESITO = "descrizioneEsito";
|
||||
|
||||
public static final String CODICE_RIPROPOSIZIONE = "codiceRiproposizione";
|
||||
|
||||
public void save(MnpGispAttCessIn transientInstance) {
|
||||
log.debug("saving MnpGispAttCessIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispAttCessIn persistentInstance) {
|
||||
log.debug("deleting MnpGispAttCessIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispAttCessIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispAttCessIn instance with id: " + id);
|
||||
try {
|
||||
MnpGispAttCessIn instance = (MnpGispAttCessIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGispAttCessIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispAttCessIn instance) {
|
||||
log.debug("finding MnpGispAttCessIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGispAttCessIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispAttCessIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispAttCessIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByNomeRichiesta(Object nomeRichiesta) {
|
||||
return findByProperty(NOME_RICHIESTA, nomeRichiesta);
|
||||
}
|
||||
|
||||
public List findByEsitoCas(Object esitoCas) {
|
||||
return findByProperty(ESITO_CAS, esitoCas);
|
||||
}
|
||||
|
||||
public List findByDettaglioEsito(Object dettaglioEsito) {
|
||||
return findByProperty(DETTAGLIO_ESITO, dettaglioEsito);
|
||||
}
|
||||
|
||||
public List findByDescrizioneEsito(Object descrizioneEsito) {
|
||||
return findByProperty(DESCRIZIONE_ESITO, descrizioneEsito);
|
||||
}
|
||||
|
||||
public List findByCodiceRiproposizione(Object codiceRiproposizione) {
|
||||
return findByProperty(CODICE_RIPROPOSIZIONE, codiceRiproposizione);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispAttCessIn instances");
|
||||
try {
|
||||
String queryString = "from MnpGispAttCessIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispAttCessIn merge(MnpGispAttCessIn detachedInstance) {
|
||||
log.debug("merging MnpGispAttCessIn instance");
|
||||
try {
|
||||
MnpGispAttCessIn result = (MnpGispAttCessIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispAttCessIn instance) {
|
||||
log.debug("attaching dirty MnpGispAttCessIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispAttCessIn instance) {
|
||||
log.debug("attaching clean MnpGispAttCessIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispAttOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispAttOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispAttOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispAttOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGispAttOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public static final String NOME_RICHIESTA = "nomeRichiesta";
|
||||
|
||||
public static final String CAS = "cas";
|
||||
|
||||
public static final String NUM_TEL = "numTel";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String PROFILO = "profilo";
|
||||
|
||||
public static final String TID = "tid";
|
||||
|
||||
public void save(MnpGispAttOut transientInstance) {
|
||||
log.debug("saving MnpGispAttOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispAttOut persistentInstance) {
|
||||
log.debug("deleting MnpGispAttOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispAttOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispAttOut instance with id: " + id);
|
||||
try {
|
||||
MnpGispAttOut instance = (MnpGispAttOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGispAttOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispAttOut instance) {
|
||||
log.debug("finding MnpGispAttOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGispAttOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispAttOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispAttOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findByNomeRichiesta(Object nomeRichiesta) {
|
||||
return findByProperty(NOME_RICHIESTA, nomeRichiesta);
|
||||
}
|
||||
|
||||
public List findByCas(Object cas) {
|
||||
return findByProperty(CAS, cas);
|
||||
}
|
||||
|
||||
public List findByNumTel(Object numTel) {
|
||||
return findByProperty(NUM_TEL, numTel);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByProfilo(Object profilo) {
|
||||
return findByProperty(PROFILO, profilo);
|
||||
}
|
||||
|
||||
public List findByTid(Object tid) {
|
||||
return findByProperty(TID, tid);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispAttOut instances");
|
||||
try {
|
||||
String queryString = "from MnpGispAttOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispAttOut merge(MnpGispAttOut detachedInstance) {
|
||||
log.debug("merging MnpGispAttOut instance");
|
||||
try {
|
||||
MnpGispAttOut result = (MnpGispAttOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispAttOut instance) {
|
||||
log.debug("attaching dirty MnpGispAttOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispAttOut instance) {
|
||||
log.debug("attaching clean MnpGispAttOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,182 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispCessOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispCessOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispCessOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispCessOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGispCessOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public static final String NOME_RICHIESTA = "nomeRichiesta";
|
||||
|
||||
public static final String CAS = "cas";
|
||||
|
||||
public static final String NUM_TEL = "numTel";
|
||||
|
||||
public static final String IMSI = "imsi";
|
||||
|
||||
public static final String OLOCODE = "olocode";
|
||||
|
||||
public static final String TID = "tid";
|
||||
|
||||
public void save(MnpGispCessOut transientInstance) {
|
||||
log.debug("saving MnpGispCessOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispCessOut persistentInstance) {
|
||||
log.debug("deleting MnpGispCessOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispCessOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispCessOut instance with id: " + id);
|
||||
try {
|
||||
MnpGispCessOut instance = (MnpGispCessOut) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGispCessOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispCessOut instance) {
|
||||
log.debug("finding MnpGispCessOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGispCessOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispCessOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispCessOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findByNomeRichiesta(Object nomeRichiesta) {
|
||||
return findByProperty(NOME_RICHIESTA, nomeRichiesta);
|
||||
}
|
||||
|
||||
public List findByCas(Object cas) {
|
||||
return findByProperty(CAS, cas);
|
||||
}
|
||||
|
||||
public List findByNumTel(Object numTel) {
|
||||
return findByProperty(NUM_TEL, numTel);
|
||||
}
|
||||
|
||||
public List findByImsi(Object imsi) {
|
||||
return findByProperty(IMSI, imsi);
|
||||
}
|
||||
|
||||
public List findByOlocode(Object olocode) {
|
||||
return findByProperty(OLOCODE, olocode);
|
||||
}
|
||||
|
||||
public List findByTid(Object tid) {
|
||||
return findByProperty(TID, tid);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispCessOut instances");
|
||||
try {
|
||||
String queryString = "from MnpGispCessOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispCessOut merge(MnpGispCessOut detachedInstance) {
|
||||
log.debug("merging MnpGispCessOut instance");
|
||||
try {
|
||||
MnpGispCessOut result = (MnpGispCessOut) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispCessOut instance) {
|
||||
log.debug("attaching dirty MnpGispCessOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispCessOut instance) {
|
||||
log.debug("attaching clean MnpGispCessOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,177 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispCessazioneOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispCessazioneOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispCessazioneOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispCessazioneOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGispCessazioneOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String CODICE_RICHIESTA_REC = "codiceRichiestaRec";
|
||||
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String NOME_FILE = "nomeFile";
|
||||
|
||||
public static final String DA_PROCESSARE = "daProcessare";
|
||||
|
||||
public void save(MnpGispCessazioneOut transientInstance) {
|
||||
log.debug("saving MnpGispCessazioneOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispCessazioneOut persistentInstance) {
|
||||
log.debug("deleting MnpGispCessazioneOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispCessazioneOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispCessazioneOut instance with id: " + id);
|
||||
try {
|
||||
MnpGispCessazioneOut instance = (MnpGispCessazioneOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGispCessazioneOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispCessazioneOut instance) {
|
||||
log.debug("finding MnpGispCessazioneOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGispCessazioneOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispCessazioneOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispCessazioneOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByCodiceRichiestaRec(Object codiceRichiestaRec) {
|
||||
return findByProperty(CODICE_RICHIESTA_REC, codiceRichiestaRec);
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByNomeFile(Object nomeFile) {
|
||||
return findByProperty(NOME_FILE, nomeFile);
|
||||
}
|
||||
|
||||
public List findByDaProcessare(Object daProcessare) {
|
||||
return findByProperty(DA_PROCESSARE, daProcessare);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispCessazioneOut instances");
|
||||
try {
|
||||
String queryString = "from MnpGispCessazioneOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispCessazioneOut merge(MnpGispCessazioneOut detachedInstance) {
|
||||
log.debug("merging MnpGispCessazioneOut instance");
|
||||
try {
|
||||
MnpGispCessazioneOut result = (MnpGispCessazioneOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispCessazioneOut instance) {
|
||||
log.debug("attaching dirty MnpGispCessazioneOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispCessazioneOut instance) {
|
||||
log.debug("attaching clean MnpGispCessazioneOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,159 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispNotificaIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispNotificaIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispNotificaIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispNotificaInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGispNotificaInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String TIPO_EVENTO = "tipoEvento";
|
||||
|
||||
public void save(MnpGispNotificaIn transientInstance) {
|
||||
log.debug("saving MnpGispNotificaIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispNotificaIn persistentInstance) {
|
||||
log.debug("deleting MnpGispNotificaIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispNotificaIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispNotificaIn instance with id: " + id);
|
||||
try {
|
||||
MnpGispNotificaIn instance = (MnpGispNotificaIn) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGispNotificaIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispNotificaIn instance) {
|
||||
log.debug("finding MnpGispNotificaIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGispNotificaIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispNotificaIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispNotificaIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByTipoEvento(Object tipoEvento) {
|
||||
return findByProperty(TIPO_EVENTO, tipoEvento);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispNotificaIn instances");
|
||||
try {
|
||||
String queryString = "from MnpGispNotificaIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispNotificaIn merge(MnpGispNotificaIn detachedInstance) {
|
||||
log.debug("merging MnpGispNotificaIn instance");
|
||||
try {
|
||||
MnpGispNotificaIn result = (MnpGispNotificaIn) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispNotificaIn instance) {
|
||||
log.debug("attaching dirty MnpGispNotificaIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispNotificaIn instance) {
|
||||
log.debug("attaching clean MnpGispNotificaIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,207 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispRetrieveOut;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispRetrieveOut.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispRetrieveOut
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispRetrieveOutDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGispRetrieveOutDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String UNIQUE_ID = "uniqueId";
|
||||
|
||||
public static final String DA_SCODARE = "daScodare";
|
||||
|
||||
public static final String ID_RICHIESTA = "idRichiesta";
|
||||
|
||||
public static final String MSISDN = "msisdn";
|
||||
|
||||
public static final String RESP_TIMEOUT = "respTimeout";
|
||||
|
||||
public static final String RESP_CODE = "respCode";
|
||||
|
||||
public static final String RESP_MSG = "respMsg";
|
||||
|
||||
public static final String RESP_STATO = "respStato";
|
||||
|
||||
public static final String RESP_CESSAZIONE_MNP = "respCessazioneMnp";
|
||||
|
||||
public static final String RESP_OPERATORE_INTERNO = "respOperatoreInterno";
|
||||
|
||||
public static final String RESP_ANAGR = "respAnagr";
|
||||
|
||||
public static final String RESP_ICCID20 = "respIccid20";
|
||||
|
||||
public void save(MnpGispRetrieveOut transientInstance) {
|
||||
log.debug("saving MnpGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispRetrieveOut persistentInstance) {
|
||||
log.debug("deleting MnpGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispRetrieveOut findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispRetrieveOut instance with id: " + id);
|
||||
try {
|
||||
MnpGispRetrieveOut instance = (MnpGispRetrieveOut) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGispRetrieveOut", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispRetrieveOut instance) {
|
||||
log.debug("finding MnpGispRetrieveOut instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpGispRetrieveOut").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispRetrieveOut instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispRetrieveOut as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByUniqueId(Object uniqueId) {
|
||||
return findByProperty(UNIQUE_ID, uniqueId);
|
||||
}
|
||||
|
||||
public List findByDaScodare(Object daScodare) {
|
||||
return findByProperty(DA_SCODARE, daScodare);
|
||||
}
|
||||
|
||||
public List findByIdRichiesta(Object idRichiesta) {
|
||||
return findByProperty(ID_RICHIESTA, idRichiesta);
|
||||
}
|
||||
|
||||
public List findByMsisdn(Object msisdn) {
|
||||
return findByProperty(MSISDN, msisdn);
|
||||
}
|
||||
|
||||
public List findByRespTimeout(Object respTimeout) {
|
||||
return findByProperty(RESP_TIMEOUT, respTimeout);
|
||||
}
|
||||
|
||||
public List findByRespCode(Object respCode) {
|
||||
return findByProperty(RESP_CODE, respCode);
|
||||
}
|
||||
|
||||
public List findByRespMsg(Object respMsg) {
|
||||
return findByProperty(RESP_MSG, respMsg);
|
||||
}
|
||||
|
||||
public List findByRespStato(Object respStato) {
|
||||
return findByProperty(RESP_STATO, respStato);
|
||||
}
|
||||
|
||||
public List findByRespCessazioneMnp(Object respCessazioneMnp) {
|
||||
return findByProperty(RESP_CESSAZIONE_MNP, respCessazioneMnp);
|
||||
}
|
||||
|
||||
public List findByRespOperatoreInterno(Object respOperatoreInterno) {
|
||||
return findByProperty(RESP_OPERATORE_INTERNO, respOperatoreInterno);
|
||||
}
|
||||
|
||||
public List findByRespAnagr(Object respAnagr) {
|
||||
return findByProperty(RESP_ANAGR, respAnagr);
|
||||
}
|
||||
|
||||
public List findByRespIccid20(Object respIccid20) {
|
||||
return findByProperty(RESP_ICCID20, respIccid20);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispRetrieveOut instances");
|
||||
try {
|
||||
String queryString = "from MnpGispRetrieveOut";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispRetrieveOut merge(MnpGispRetrieveOut detachedInstance) {
|
||||
log.debug("merging MnpGispRetrieveOut instance");
|
||||
try {
|
||||
MnpGispRetrieveOut result = (MnpGispRetrieveOut) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispRetrieveOut instance) {
|
||||
log.debug("attaching dirty MnpGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispRetrieveOut instance) {
|
||||
log.debug("attaching clean MnpGispRetrieveOut instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,147 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispScartoAttCessIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispScartoAttCessIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispScartoAttCessIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispScartoAttCessInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory
|
||||
.getLog(MnpGispScartoAttCessInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String TRACCIATO = "tracciato";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public void save(MnpGispScartoAttCessIn transientInstance) {
|
||||
log.debug("saving MnpGispScartoAttCessIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispScartoAttCessIn persistentInstance) {
|
||||
log.debug("deleting MnpGispScartoAttCessIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispScartoAttCessIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispScartoAttCessIn instance with id: " + id);
|
||||
try {
|
||||
MnpGispScartoAttCessIn instance = (MnpGispScartoAttCessIn) getSession()
|
||||
.get("it.valueteam.dao.db.hb.MnpGispScartoAttCessIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispScartoAttCessIn instance) {
|
||||
log.debug("finding MnpGispScartoAttCessIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGispScartoAttCessIn").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispScartoAttCessIn instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispScartoAttCessIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByTracciato(Object tracciato) {
|
||||
return findByProperty(TRACCIATO, tracciato);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispScartoAttCessIn instances");
|
||||
try {
|
||||
String queryString = "from MnpGispScartoAttCessIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispScartoAttCessIn merge(MnpGispScartoAttCessIn detachedInstance) {
|
||||
log.debug("merging MnpGispScartoAttCessIn instance");
|
||||
try {
|
||||
MnpGispScartoAttCessIn result = (MnpGispScartoAttCessIn) getSession()
|
||||
.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispScartoAttCessIn instance) {
|
||||
log.debug("attaching dirty MnpGispScartoAttCessIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispScartoAttCessIn instance) {
|
||||
log.debug("attaching clean MnpGispScartoAttCessIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,139 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGispScartoNotificaIn;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGispScartoNotificaIn.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGispScartoNotificaIn
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGispScartoNotificaInDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGispScartoNotificaInDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String TRACCIATO = "tracciato";
|
||||
|
||||
public static final String CAUSALE_SCARTO = "causaleScarto";
|
||||
|
||||
public void save(MnpGispScartoNotificaIn transientInstance) {
|
||||
log.debug("saving MnpGispScartoNotificaIn instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGispScartoNotificaIn persistentInstance) {
|
||||
log.debug("deleting MnpGispScartoNotificaIn instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispScartoNotificaIn findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGispScartoNotificaIn instance with id: " + id);
|
||||
try {
|
||||
MnpGispScartoNotificaIn instance = (MnpGispScartoNotificaIn) getSession().get("it.valueteam.dao.db.hb.MnpGispScartoNotificaIn", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGispScartoNotificaIn instance) {
|
||||
log.debug("finding MnpGispScartoNotificaIn instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria("it.valueteam.dao.db.hb.MnpGispScartoNotificaIn").add(Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGispScartoNotificaIn instance with property: " + propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGispScartoNotificaIn as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByTracciato(Object tracciato) {
|
||||
return findByProperty(TRACCIATO, tracciato);
|
||||
}
|
||||
|
||||
public List findByCausaleScarto(Object causaleScarto) {
|
||||
return findByProperty(CAUSALE_SCARTO, causaleScarto);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGispScartoNotificaIn instances");
|
||||
try {
|
||||
String queryString = "from MnpGispScartoNotificaIn";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGispScartoNotificaIn merge(MnpGispScartoNotificaIn detachedInstance) {
|
||||
log.debug("merging MnpGispScartoNotificaIn instance");
|
||||
try {
|
||||
MnpGispScartoNotificaIn result = (MnpGispScartoNotificaIn) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGispScartoNotificaIn instance) {
|
||||
log.debug("attaching dirty MnpGispScartoNotificaIn instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGispScartoNotificaIn instance) {
|
||||
log.debug("attaching clean MnpGispScartoNotificaIn instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,224 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGuiDonor;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGuiDonor.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGuiDonor
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGuiDonorDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGuiDonorDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ACQUISITE = "acquisite";
|
||||
|
||||
public static final String ANNULLATE_SCARTATE = "annullateScartate";
|
||||
|
||||
public static final String PRESE_IN_CARICO = "preseInCarico";
|
||||
|
||||
public static final String RITARDO_PRESA_IN_CARICO = "ritardoPresaInCarico";
|
||||
|
||||
public static final String IN_VALIDAZIONE_TIM = "inValidazioneTim";
|
||||
|
||||
public static final String SOSPESE = "sospese";
|
||||
|
||||
public static final String IN_VALIDAZIONE_OGGI = "inValidazioneOggi";
|
||||
|
||||
public static final String RITARDO_VALIDAZIONE = "ritardoValidazione";
|
||||
|
||||
public static final String VALIDATE_OK = "validateOk";
|
||||
|
||||
public static final String VALIDATE_KO = "validateKo";
|
||||
|
||||
public static final String RIFIUTATE = "rifiutate";
|
||||
|
||||
public static final String IN_CESSAZIONE = "inCessazione";
|
||||
|
||||
public static final String IN_CESSAZIONE_OGGI = "inCessazioneOggi";
|
||||
|
||||
public static final String RITARDO_ESPLETAMENTO = "ritardoEspletamento";
|
||||
|
||||
public static final String ESPLETATE = "espletate";
|
||||
|
||||
public void save(MnpGuiDonor transientInstance) {
|
||||
log.debug("saving MnpGuiDonor instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGuiDonor persistentInstance) {
|
||||
log.debug("deleting MnpGuiDonor instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiDonor findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGuiDonor instance with id: " + id);
|
||||
try {
|
||||
MnpGuiDonor instance = (MnpGuiDonor) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGuiDonor", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGuiDonor instance) {
|
||||
log.debug("finding MnpGuiDonor instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGuiDonor").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGuiDonor instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGuiDonor as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByAcquisite(Object acquisite) {
|
||||
return findByProperty(ACQUISITE, acquisite);
|
||||
}
|
||||
|
||||
public List findByAnnullateScartate(Object annullateScartate) {
|
||||
return findByProperty(ANNULLATE_SCARTATE, annullateScartate);
|
||||
}
|
||||
|
||||
public List findByPreseInCarico(Object preseInCarico) {
|
||||
return findByProperty(PRESE_IN_CARICO, preseInCarico);
|
||||
}
|
||||
|
||||
public List findByRitardoPresaInCarico(Object ritardoPresaInCarico) {
|
||||
return findByProperty(RITARDO_PRESA_IN_CARICO, ritardoPresaInCarico);
|
||||
}
|
||||
|
||||
public List findByInValidazioneTim(Object inValidazioneTim) {
|
||||
return findByProperty(IN_VALIDAZIONE_TIM, inValidazioneTim);
|
||||
}
|
||||
|
||||
public List findBySospese(Object sospese) {
|
||||
return findByProperty(SOSPESE, sospese);
|
||||
}
|
||||
|
||||
public List findByInValidazioneOggi(Object inValidazioneOggi) {
|
||||
return findByProperty(IN_VALIDAZIONE_OGGI, inValidazioneOggi);
|
||||
}
|
||||
|
||||
public List findByRitardoValidazione(Object ritardoValidazione) {
|
||||
return findByProperty(RITARDO_VALIDAZIONE, ritardoValidazione);
|
||||
}
|
||||
|
||||
public List findByValidateOk(Object validateOk) {
|
||||
return findByProperty(VALIDATE_OK, validateOk);
|
||||
}
|
||||
|
||||
public List findByValidateKo(Object validateKo) {
|
||||
return findByProperty(VALIDATE_KO, validateKo);
|
||||
}
|
||||
|
||||
public List findByRifiutate(Object rifiutate) {
|
||||
return findByProperty(RIFIUTATE, rifiutate);
|
||||
}
|
||||
|
||||
public List findByInCessazione(Object inCessazione) {
|
||||
return findByProperty(IN_CESSAZIONE, inCessazione);
|
||||
}
|
||||
|
||||
public List findByInCessazioneOggi(Object inCessazioneOggi) {
|
||||
return findByProperty(IN_CESSAZIONE_OGGI, inCessazioneOggi);
|
||||
}
|
||||
|
||||
public List findByRitardoEspletamento(Object ritardoEspletamento) {
|
||||
return findByProperty(RITARDO_ESPLETAMENTO, ritardoEspletamento);
|
||||
}
|
||||
|
||||
public List findByEspletate(Object espletate) {
|
||||
return findByProperty(ESPLETATE, espletate);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGuiDonor instances");
|
||||
try {
|
||||
String queryString = "from MnpGuiDonor";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiDonor merge(MnpGuiDonor detachedInstance) {
|
||||
log.debug("merging MnpGuiDonor instance");
|
||||
try {
|
||||
MnpGuiDonor result = (MnpGuiDonor) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGuiDonor instance) {
|
||||
log.debug("attaching dirty MnpGuiDonor instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGuiDonor instance) {
|
||||
log.debug("attaching clean MnpGuiDonor instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,176 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGuiPorting;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGuiPorting.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGuiPorting
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGuiPortingDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGuiPortingDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ACQUISITE = "acquisite";
|
||||
|
||||
public static final String SCARTATE = "scartate";
|
||||
|
||||
public static final String ATTESA_EVASIONE = "attesaEvasione";
|
||||
|
||||
public static final String NON_EVASE_INVIATE = "nonEvaseInviate";
|
||||
|
||||
public static final String NON_EVASE = "nonEvase";
|
||||
|
||||
public static final String EVASE = "evase";
|
||||
|
||||
public static final String ESPLETATE = "espletate";
|
||||
|
||||
public void save(MnpGuiPorting transientInstance) {
|
||||
log.debug("saving MnpGuiPorting instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGuiPorting persistentInstance) {
|
||||
log.debug("deleting MnpGuiPorting instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiPorting findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGuiPorting instance with id: " + id);
|
||||
try {
|
||||
MnpGuiPorting instance = (MnpGuiPorting) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGuiPorting", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGuiPorting instance) {
|
||||
log.debug("finding MnpGuiPorting instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGuiPorting").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGuiPorting instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGuiPorting as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByAcquisite(Object acquisite) {
|
||||
return findByProperty(ACQUISITE, acquisite);
|
||||
}
|
||||
|
||||
public List findByScartate(Object scartate) {
|
||||
return findByProperty(SCARTATE, scartate);
|
||||
}
|
||||
|
||||
public List findByAttesaEvasione(Object attesaEvasione) {
|
||||
return findByProperty(ATTESA_EVASIONE, attesaEvasione);
|
||||
}
|
||||
|
||||
public List findByNonEvaseInviate(Object nonEvaseInviate) {
|
||||
return findByProperty(NON_EVASE_INVIATE, nonEvaseInviate);
|
||||
}
|
||||
|
||||
public List findByNonEvase(Object nonEvase) {
|
||||
return findByProperty(NON_EVASE, nonEvase);
|
||||
}
|
||||
|
||||
public List findByEvase(Object evase) {
|
||||
return findByProperty(EVASE, evase);
|
||||
}
|
||||
|
||||
public List findByEspletate(Object espletate) {
|
||||
return findByProperty(ESPLETATE, espletate);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGuiPorting instances");
|
||||
try {
|
||||
String queryString = "from MnpGuiPorting";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiPorting merge(MnpGuiPorting detachedInstance) {
|
||||
log.debug("merging MnpGuiPorting instance");
|
||||
try {
|
||||
MnpGuiPorting result = (MnpGuiPorting) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGuiPorting instance) {
|
||||
log.debug("attaching dirty MnpGuiPorting instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGuiPorting instance) {
|
||||
log.debug("attaching clean MnpGuiPorting instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,230 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpGuiRecipient;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpGuiRecipient.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpGuiRecipient
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpGuiRecipientDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpGuiRecipientDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String ACQUISITE_ACCODATE = "acquisiteAccodate";
|
||||
|
||||
public static final String SCARTATE_PRESA_IN_CARICO = "scartatePresaInCarico";
|
||||
|
||||
public static final String INVIATE = "inviate";
|
||||
|
||||
public static final String PRESE_IN_CARICO = "preseInCarico";
|
||||
|
||||
public static final String MANCATE_PRESA_IN_CARICO = "mancatePresaInCarico";
|
||||
|
||||
public static final String RICHIESTE_VALIDATE = "richiesteValidate";
|
||||
|
||||
public static final String MANCATE_VALIDATE = "mancateValidate";
|
||||
|
||||
public static final String SOSPESE = "sospese";
|
||||
|
||||
public static final String ATTESA_EVASIONE = "attesaEvasione";
|
||||
|
||||
public static final String RITARDO_EVASIONE = "ritardoEvasione";
|
||||
|
||||
public static final String MANCATA_EVASIONE_A = "mancataEvasioneA";
|
||||
|
||||
public static final String MANCATA_EVASIONE_B = "mancataEvasioneB";
|
||||
|
||||
public static final String RIFIUTATE = "rifiutate";
|
||||
|
||||
public static final String ANNULLATE = "annullate";
|
||||
|
||||
public static final String ANNULLATE_GRUPPO = "annullateGruppo";
|
||||
|
||||
public static final String EVASE = "evase";
|
||||
|
||||
public void save(MnpGuiRecipient transientInstance) {
|
||||
log.debug("saving MnpGuiRecipient instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpGuiRecipient persistentInstance) {
|
||||
log.debug("deleting MnpGuiRecipient instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiRecipient findById(java.lang.Long id) {
|
||||
log.debug("getting MnpGuiRecipient instance with id: " + id);
|
||||
try {
|
||||
MnpGuiRecipient instance = (MnpGuiRecipient) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpGuiRecipient", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpGuiRecipient instance) {
|
||||
log.debug("finding MnpGuiRecipient instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpGuiRecipient").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpGuiRecipient instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpGuiRecipient as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByAcquisiteAccodate(Object acquisiteAccodate) {
|
||||
return findByProperty(ACQUISITE_ACCODATE, acquisiteAccodate);
|
||||
}
|
||||
|
||||
public List findByScartatePresaInCarico(Object scartatePresaInCarico) {
|
||||
return findByProperty(SCARTATE_PRESA_IN_CARICO, scartatePresaInCarico);
|
||||
}
|
||||
|
||||
public List findByInviate(Object inviate) {
|
||||
return findByProperty(INVIATE, inviate);
|
||||
}
|
||||
|
||||
public List findByPreseInCarico(Object preseInCarico) {
|
||||
return findByProperty(PRESE_IN_CARICO, preseInCarico);
|
||||
}
|
||||
|
||||
public List findByMancatePresaInCarico(Object mancatePresaInCarico) {
|
||||
return findByProperty(MANCATE_PRESA_IN_CARICO, mancatePresaInCarico);
|
||||
}
|
||||
|
||||
public List findByRichiesteValidate(Object richiesteValidate) {
|
||||
return findByProperty(RICHIESTE_VALIDATE, richiesteValidate);
|
||||
}
|
||||
|
||||
public List findByMancateValidate(Object mancateValidate) {
|
||||
return findByProperty(MANCATE_VALIDATE, mancateValidate);
|
||||
}
|
||||
|
||||
public List findBySospese(Object sospese) {
|
||||
return findByProperty(SOSPESE, sospese);
|
||||
}
|
||||
|
||||
public List findByAttesaEvasione(Object attesaEvasione) {
|
||||
return findByProperty(ATTESA_EVASIONE, attesaEvasione);
|
||||
}
|
||||
|
||||
public List findByRitardoEvasione(Object ritardoEvasione) {
|
||||
return findByProperty(RITARDO_EVASIONE, ritardoEvasione);
|
||||
}
|
||||
|
||||
public List findByMancataEvasioneA(Object mancataEvasioneA) {
|
||||
return findByProperty(MANCATA_EVASIONE_A, mancataEvasioneA);
|
||||
}
|
||||
|
||||
public List findByMancataEvasioneB(Object mancataEvasioneB) {
|
||||
return findByProperty(MANCATA_EVASIONE_B, mancataEvasioneB);
|
||||
}
|
||||
|
||||
public List findByRifiutate(Object rifiutate) {
|
||||
return findByProperty(RIFIUTATE, rifiutate);
|
||||
}
|
||||
|
||||
public List findByAnnullate(Object annullate) {
|
||||
return findByProperty(ANNULLATE, annullate);
|
||||
}
|
||||
|
||||
public List findByAnnullateGruppo(Object annullateGruppo) {
|
||||
return findByProperty(ANNULLATE_GRUPPO, annullateGruppo);
|
||||
}
|
||||
|
||||
public List findByEvase(Object evase) {
|
||||
return findByProperty(EVASE, evase);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpGuiRecipient instances");
|
||||
try {
|
||||
String queryString = "from MnpGuiRecipient";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpGuiRecipient merge(MnpGuiRecipient detachedInstance) {
|
||||
log.debug("merging MnpGuiRecipient instance");
|
||||
try {
|
||||
MnpGuiRecipient result = (MnpGuiRecipient) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpGuiRecipient instance) {
|
||||
log.debug("attaching dirty MnpGuiRecipient instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpGuiRecipient instance) {
|
||||
log.debug("attaching clean MnpGuiRecipient instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,137 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpInternalState;
|
||||
import it.valueteam.obj.dao.db.hb.MnpInternalStateId;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpInternalState.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpInternalState
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpInternalStateDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpInternalStateDAO.class);
|
||||
|
||||
// property constants
|
||||
|
||||
public void save(MnpInternalState transientInstance) {
|
||||
log.debug("saving MnpInternalState instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpInternalState persistentInstance) {
|
||||
log.debug("deleting MnpInternalState instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpInternalState findById(
|
||||
MnpInternalStateId id) {
|
||||
log.debug("getting MnpInternalState instance with id: " + id);
|
||||
try {
|
||||
MnpInternalState instance = (MnpInternalState) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpInternalState", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpInternalState instance) {
|
||||
log.debug("finding MnpInternalState instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpInternalState").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpInternalState instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpInternalState as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpInternalState instances");
|
||||
try {
|
||||
String queryString = "from MnpInternalState";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpInternalState merge(MnpInternalState detachedInstance) {
|
||||
log.debug("merging MnpInternalState instance");
|
||||
try {
|
||||
MnpInternalState result = (MnpInternalState) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpInternalState instance) {
|
||||
log.debug("attaching dirty MnpInternalState instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpInternalState instance) {
|
||||
log.debug("attaching clean MnpInternalState instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,151 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpLov;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpLov.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpLov
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpLovDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpLovDAO.class);
|
||||
|
||||
// property constants
|
||||
public static final String LOV_NAME = "lovName";
|
||||
|
||||
public static final String NAME = "name";
|
||||
|
||||
public static final String DESCR = "descr";
|
||||
|
||||
public void save(MnpLov transientInstance) {
|
||||
log.debug("saving MnpLov instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpLov persistentInstance) {
|
||||
log.debug("deleting MnpLov instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpLov findById(java.lang.Long id) {
|
||||
log.debug("getting MnpLov instance with id: " + id);
|
||||
try {
|
||||
MnpLov instance = (MnpLov) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpLov", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpLov instance) {
|
||||
log.debug("finding MnpLov instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpLov").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpLov instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpLov as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByLovName(Object lovName) {
|
||||
return findByProperty(LOV_NAME, lovName);
|
||||
}
|
||||
|
||||
public List findByName(Object name) {
|
||||
return findByProperty(NAME, name);
|
||||
}
|
||||
|
||||
public List findByDescr(Object descr) {
|
||||
return findByProperty(DESCR, descr);
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpLov instances");
|
||||
try {
|
||||
String queryString = "from MnpLov";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpLov merge(MnpLov detachedInstance) {
|
||||
log.debug("merging MnpLov instance");
|
||||
try {
|
||||
MnpLov result = (MnpLov) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpLov instance) {
|
||||
log.debug("attaching dirty MnpLov instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpLov instance) {
|
||||
log.debug("attaching clean MnpLov instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpLovRef;
|
||||
import it.valueteam.obj.dao.db.hb.MnpLovRefId;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpLovRef.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpLovRef
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpLovRefDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpLovRefDAO.class);
|
||||
|
||||
// property constants
|
||||
|
||||
public void save(MnpLovRef transientInstance) {
|
||||
log.debug("saving MnpLovRef instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpLovRef persistentInstance) {
|
||||
log.debug("deleting MnpLovRef instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpLovRef findById(MnpLovRefId id) {
|
||||
log.debug("getting MnpLovRef instance with id: " + id);
|
||||
try {
|
||||
MnpLovRef instance = (MnpLovRef) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpLovRef", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpLovRef instance) {
|
||||
log.debug("finding MnpLovRef instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpLovRef").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpLovRef instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpLovRef as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpLovRef instances");
|
||||
try {
|
||||
String queryString = "from MnpLovRef";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpLovRef merge(MnpLovRef detachedInstance) {
|
||||
log.debug("merging MnpLovRef instance");
|
||||
try {
|
||||
MnpLovRef result = (MnpLovRef) getSession().merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpLovRef instance) {
|
||||
log.debug("attaching dirty MnpLovRef instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpLovRef instance) {
|
||||
log.debug("attaching clean MnpLovRef instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpMessageId;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpMessageId.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpMessageId
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpMessageIdDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpMessageIdDAO.class);
|
||||
|
||||
// property constants
|
||||
|
||||
public void save(MnpMessageId transientInstance) {
|
||||
log.debug("saving MnpMessageId instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpMessageId persistentInstance) {
|
||||
log.debug("deleting MnpMessageId instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpMessageId findById(java.lang.String id) {
|
||||
log.debug("getting MnpMessageId instance with id: " + id);
|
||||
try {
|
||||
MnpMessageId instance = (MnpMessageId) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpMessageId", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpMessageId instance) {
|
||||
log.debug("finding MnpMessageId instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.dao.db.hb.MnpMessageId").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpMessageId instance with property: "
|
||||
+ propertyName + ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpMessageId as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpMessageId instances");
|
||||
try {
|
||||
String queryString = "from MnpMessageId";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpMessageId merge(MnpMessageId detachedInstance) {
|
||||
log.debug("merging MnpMessageId instance");
|
||||
try {
|
||||
MnpMessageId result = (MnpMessageId) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpMessageId instance) {
|
||||
log.debug("attaching dirty MnpMessageId instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpMessageId instance) {
|
||||
log.debug("attaching clean MnpMessageId instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,132 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
import it.valueteam.obj.dao.db.hb.MnpMscInRec;
|
||||
|
||||
import java.util.List;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.hibernate.LockMode;
|
||||
import org.hibernate.Query;
|
||||
import org.hibernate.criterion.Example;
|
||||
|
||||
/**
|
||||
* Data access object (DAO) for domain model class MnpMscInRec.
|
||||
*
|
||||
* @see it.valueteam.dao.db.hb.MnpMscInRec
|
||||
* @author MyEclipse Persistence Tools
|
||||
*/
|
||||
|
||||
public class MnpMscInRecDAO extends BaseHibernateTestDAO {
|
||||
private static final Log log = LogFactory.getLog(MnpMscInRecDAO.class);
|
||||
|
||||
public void save(MnpMscInRec transientInstance) {
|
||||
log.debug("saving MnpMscInRec instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(MnpMscInRec persistentInstance) {
|
||||
log.debug("deleting MnpMscInRec instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpMscInRec findById(java.lang.Long id) {
|
||||
log.debug("getting MnpMscInRec instance with id: " + id);
|
||||
try {
|
||||
MnpMscInRec instance = (MnpMscInRec) getSession().get(
|
||||
"it.valueteam.dao.db.hb.MnpMscInRec", id);
|
||||
return instance;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByExample(MnpMscInRec instance) {
|
||||
log.debug("finding MnpMscInRec instance by example");
|
||||
try {
|
||||
List results = getSession().createCriteria(
|
||||
"it.valueteam.obj.dao.db.hb.MnpMscInRec").add(
|
||||
Example.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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding MnpMscInRec instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "from MnpMscInRec as 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;
|
||||
}
|
||||
}
|
||||
|
||||
public List findAll() {
|
||||
log.debug("finding all MnpMscInRec instances");
|
||||
try {
|
||||
String queryString = "from MnpMscInRec";
|
||||
Query queryObject = getSession().createQuery(queryString);
|
||||
return queryObject.list();
|
||||
} catch (RuntimeException re) {
|
||||
log.error("find all failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public MnpMscInRec merge(MnpMscInRec detachedInstance) {
|
||||
log.debug("merging MnpMscInRec instance");
|
||||
try {
|
||||
MnpMscInRec result = (MnpMscInRec) getSession().merge(
|
||||
detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
} catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachDirty(MnpMscInRec instance) {
|
||||
log.debug("attaching dirty MnpMscInRec instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(MnpMscInRec instance) {
|
||||
log.debug("attaching clean MnpMscInRec instance");
|
||||
try {
|
||||
getSession().lock(instance, LockMode.NONE);
|
||||
log.debug("attach successful");
|
||||
} catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user