First Commit - Source Code from Reply
This commit is contained in:
30
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/Pojo.ftl
Normal file
30
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/Pojo.ftl
Normal file
@@ -0,0 +1,30 @@
|
||||
package it.valueteam.obj.dao.db.hb;
|
||||
//${pojo.getPackageDeclaration()}
|
||||
// Generated ${date} by Hibernate Tools ${version}
|
||||
|
||||
<#assign classbody>
|
||||
<#include "PojoTypeDeclaration.ftl"/> {
|
||||
|
||||
<#if !pojo.isInterface()>
|
||||
<#include "PojoFields.ftl"/>
|
||||
|
||||
<#include "PojoConstructors.ftl"/>
|
||||
|
||||
<#include "PojoPropertyAccessors.ftl"/>
|
||||
|
||||
<#include "PojoToString.ftl"/>
|
||||
|
||||
<#include "PojoEqualsHashcode.ftl"/>
|
||||
|
||||
<#else>
|
||||
<#include "PojoInterfacePropertyAccessors.ftl"/>
|
||||
|
||||
</#if>
|
||||
<#include "PojoExtraClassCode.ftl"/>
|
||||
|
||||
}
|
||||
</#assign>
|
||||
|
||||
${pojo.generateImports()}
|
||||
${classbody}
|
||||
|
||||
317
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/daohome.ftl
Normal file
317
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/daohome.ftl
Normal file
@@ -0,0 +1,317 @@
|
||||
package it.valueteam.dao.db.hb;
|
||||
|
||||
// Generated ${date} by Hibernate Tools Customizzato per MNP da C.A. ${version}
|
||||
|
||||
<#assign classbody>
|
||||
<#assign declarationName = pojo.importType(pojo.getDeclarationName())>/**
|
||||
* DAO object for domain model class ${declarationName}.
|
||||
* @see ${pojo.getQualifiedDeclarationName()}
|
||||
* @author C.A.
|
||||
*/
|
||||
<#if ejb3>
|
||||
@${pojo.importType("javax.ejb.Stateless")}
|
||||
</#if>
|
||||
import org.hibernate.Query;
|
||||
import it.valueteam.obj.dao.db.hb.*;
|
||||
import org.hibernate.criterion.Criterion;
|
||||
import org.hibernate.Criteria;
|
||||
import java.util.*;
|
||||
|
||||
public class ${declarationName}DAO extends BaseHibernateTestDAO{
|
||||
|
||||
protected static final ${pojo.importType("org.apache.commons.logging.Log")} log = ${pojo.importType("org.apache.commons.logging.LogFactory")}.getLog(${pojo.getDeclarationName()}DAO.class);
|
||||
|
||||
<#if ejb3>
|
||||
@${pojo.importType("javax.persistence.PersistenceContext")} private ${pojo.importType("javax.persistence.EntityManager")} entityManager;
|
||||
|
||||
public void persist(${declarationName} transientInstance) {
|
||||
log.debug("persisting ${declarationName} instance");
|
||||
try {
|
||||
entityManager.persist(transientInstance);
|
||||
log.debug("persist successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("persist failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void remove(${declarationName} persistentInstance) {
|
||||
log.debug("removing ${declarationName} instance");
|
||||
try {
|
||||
entityManager.remove(persistentInstance);
|
||||
log.debug("remove successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("remove failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public ${declarationName} merge(${declarationName} detachedInstance) {
|
||||
log.debug("merging ${declarationName} instance");
|
||||
try {
|
||||
${declarationName} result = entityManager.merge(detachedInstance);
|
||||
log.debug("merge successful");
|
||||
return result;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("merge failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
<#if clazz.identifierProperty?has_content>
|
||||
public ${declarationName} findById( ${pojo.getJavaTypeName(clazz.identifierProperty, jdk5)} id) {
|
||||
log.debug("getting ${declarationName} instance with id: " + id);
|
||||
try {
|
||||
${declarationName} instance = entityManager.find(${pojo.getDeclarationName()}.class, id);
|
||||
log.debug("get successful");
|
||||
return instance;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("get failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
</#if>
|
||||
<#else>
|
||||
|
||||
public void save(${declarationName} transientInstance) {
|
||||
log.debug("saving ${declarationName} instance");
|
||||
try {
|
||||
getSession().save(transientInstance);
|
||||
log.debug("save successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("save failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public ${pojo.importType("java.util.List")} findByProperty(String propertyName, Object value) {
|
||||
log.debug("finding ${declarationName} instance with property: " + propertyName
|
||||
+ ", value: " + value);
|
||||
try {
|
||||
String queryString = "select model from ${declarationName} 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 ${pojo.importType("java.util.List")} findAll() {
|
||||
log.debug("finding all ${declarationName} ");
|
||||
try {
|
||||
String queryString = " from ${declarationName}";
|
||||
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(${declarationName} instance) {
|
||||
log.debug("attaching dirty ${declarationName} instance");
|
||||
try {
|
||||
getSession().saveOrUpdate(instance);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void attachClean(${declarationName} instance) {
|
||||
log.debug("attaching clean ${declarationName} instance");
|
||||
try {
|
||||
getSession().lock(instance, ${pojo.importType("org.hibernate.LockMode")}.NONE);
|
||||
log.debug("attach successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("attach failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public void delete(${declarationName} persistentInstance) {
|
||||
log.debug("deleting ${declarationName} instance");
|
||||
try {
|
||||
getSession().delete(persistentInstance);
|
||||
log.debug("delete successful");
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("delete failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
|
||||
public ${declarationName} merge(${declarationName} detachedInstance) {
|
||||
log.debug("merging ${declarationName} instance");
|
||||
try {
|
||||
${declarationName} result = (${declarationName}) 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 ${declarationName} instance by criteria");
|
||||
try {
|
||||
Criteria crit = getSession()
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.${clazz.entityName}");
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
<#if clazz.identifierProperty?has_content>
|
||||
public ${declarationName} findById( ${c2j.getJavaTypeName(clazz.identifierProperty, jdk5)} id) {
|
||||
log.debug("getting ${declarationName} instance with id: " + id);
|
||||
try {
|
||||
${declarationName} instance = (${declarationName}) getSession()
|
||||
.get("it.valueteam.obj.dao.db.hb.${clazz.entityName}", 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();
|
||||
}
|
||||
}
|
||||
</#if>
|
||||
|
||||
<#if clazz.hasNaturalId()>
|
||||
public ${declarationName} findByNaturalId(${c2j.asNaturalIdParameterList(clazz)}) {
|
||||
log.debug("getting ${declarationName} instance by natural id");
|
||||
try {
|
||||
${declarationName} instance = (${declarationName}) getSession()
|
||||
.createCriteria("${clazz.entityName}")
|
||||
<#if jdk5>
|
||||
.add( ${pojo.staticImport("org.hibernate.criterion.Restrictions", "naturalId")}()
|
||||
<#else>
|
||||
.add( ${pojo.importType("org.hibernate.criterion.Restrictions")}.naturalId()
|
||||
</#if>
|
||||
<#foreach property in pojo.getAllPropertiesIterator()>
|
||||
<#if property.isNaturalIdentifier()>
|
||||
.set("${property.name}", ${property.name})
|
||||
</#if>
|
||||
</#foreach>
|
||||
)
|
||||
.uniqueResult();
|
||||
if (instance==null) {
|
||||
log.debug("get successful, no instance found");
|
||||
}
|
||||
else {
|
||||
log.debug("get successful, instance found");
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
catch (RuntimeException re) {
|
||||
log.error("query failed", re);
|
||||
throw re;
|
||||
}
|
||||
}
|
||||
</#if>
|
||||
<#if jdk5>
|
||||
public ${pojo.importType("java.util.List")}<${declarationName}> findByExample(${declarationName} instance) {
|
||||
<#else>
|
||||
public ${pojo.importType("java.util.List")} findByExample(${declarationName} instance) {
|
||||
</#if>
|
||||
log.debug("finding ${declarationName} instance by example");
|
||||
try {
|
||||
<#if jdk5>
|
||||
${pojo.importType("java.util.List")}<${declarationName}> results = (List<${declarationName}>) sessionFactory.getCurrentSession()
|
||||
<#else>
|
||||
${pojo.importType("java.util.List")} results = getSession()
|
||||
</#if>
|
||||
.createCriteria("it.valueteam.obj.dao.db.hb.${clazz.entityName}")
|
||||
<#if jdk5>
|
||||
.add( ${pojo.staticImport("org.hibernate.criterion.Example", "create")}(instance) )
|
||||
<#else>
|
||||
.add(${pojo.importType("org.hibernate.criterion.Example")}.create(instance))
|
||||
</#if>
|
||||
.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();
|
||||
}
|
||||
}
|
||||
<#foreach queryName in cfg.namedQueries.keySet()>
|
||||
<#if queryName.startsWith(clazz.entityName + ".")>
|
||||
<#assign methname = c2j.unqualify(queryName)>
|
||||
<#assign params = cfg.namedQueries.get(queryName).parameterTypes><#assign argList = c2j.asFinderArgumentList(params, pojo)>
|
||||
<#if jdk5 && methname.startsWith("find")>
|
||||
public ${pojo.importType("java.util.List")}<${declarationName}> ${methname}(${argList}) {
|
||||
<#elseif methname.startsWith("count")>
|
||||
public int ${methname}(${argList}) {
|
||||
<#else>
|
||||
public ${pojo.importType("java.util.List")} ${methname}(${argList}) {
|
||||
</#if>
|
||||
${pojo.importType("org.hibernate.Query")} query = sessionFactory.getCurrentSession()
|
||||
.getNamedQuery("${queryName}");
|
||||
<#foreach param in params.keySet()>
|
||||
<#if param.equals("maxResults")>
|
||||
query.setMaxResults(maxResults);
|
||||
<#elseif param.equals("firstResult")>
|
||||
query.setFirstResult(firstResult);
|
||||
<#else>
|
||||
query.setParameter("${param}", ${param});
|
||||
</#if>
|
||||
</#foreach>
|
||||
<#if jdk5 && methname.startsWith("find")>
|
||||
return (List<${declarationName}>) query.list();
|
||||
<#elseif methname.startsWith("count")>
|
||||
return ( (Integer) query.uniqueResult() ).intValue();
|
||||
<#else>
|
||||
return query.list();
|
||||
</#if>
|
||||
}
|
||||
</#if>
|
||||
</#foreach></#if>
|
||||
}
|
||||
</#assign>
|
||||
|
||||
${pojo.generateImports()}
|
||||
${classbody}
|
||||
BIN
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/freemarker.jar
Normal file
BIN
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/freemarker.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/jtidy-r8-20060801.jar
Normal file
BIN
dbcmnpsrc/FE/mnpdev/test/hibernate/genLib/jtidy-r8-20060801.jar
Normal file
Binary file not shown.
@@ -0,0 +1,95 @@
|
||||
<${c2h.getTag(clazz)}
|
||||
name="it.valueteam.obj.dao.db.hb.${c2h.getClassName(clazz)}"
|
||||
<#if !c2h.getClassName(clazz).equals(clazz.entityName)>
|
||||
entity-name="${clazz.entityName}"
|
||||
</#if>
|
||||
<#if clazz.superclass?exists>
|
||||
extends="${clazz.getSuperclass().className}"
|
||||
</#if>
|
||||
<#if c2h.needsTable(clazz)>
|
||||
table="${clazz.table.quotedName}"
|
||||
</#if>
|
||||
|
||||
<#if clazz.table.catalog?exists>
|
||||
catalog="${clazz.table.catalog}"
|
||||
</#if>
|
||||
<#if !clazz.mutable>
|
||||
mutable="false"
|
||||
</#if>
|
||||
<#if clazz.useDynamicUpdate()>
|
||||
dynamic-update="true"
|
||||
</#if>
|
||||
<#if clazz.useDynamicInsert()>
|
||||
dynamic-insert="true"
|
||||
</#if>
|
||||
<#if clazz.hasSelectBeforeUpdate()>
|
||||
select-before-update="true"
|
||||
</#if>
|
||||
<#if c2h.needsDiscriminator(clazz)>
|
||||
discriminator-value="${clazz.discriminatorValue}"
|
||||
</#if>
|
||||
<#if clazz.isExplicitPolymorphism()>
|
||||
polymorphism="explicit"
|
||||
</#if>
|
||||
<#if clazz.isLazy() && !c2h.getClassName(clazz).equals(c2h.getProxyInterfaceName(clazz))>
|
||||
proxy="${c2h.getProxyInterfaceName(clazz)}"
|
||||
<#elseif !clazz.isLazy()>
|
||||
lazy="false"
|
||||
</#if>
|
||||
<#if clazz.abstract?exists && clazz.abstract>
|
||||
abstract="true"
|
||||
</#if>
|
||||
<#if c2h.getClassName(clazz).equals("MnpMvnoNotificaRecOut") || c2h.getClassName(clazz).equals("MnpGestRichRecVirt") || c2h.getClassName(clazz).equals("MnpGestRichDonorVirt")>
|
||||
optimistic-lock="${c2h.getClassLevelOptimisticLockMode(clazz)}"
|
||||
</#if>
|
||||
<#if (clazz.batchSize>1)>
|
||||
batch-size="${clazz.batchSize}"
|
||||
</#if>
|
||||
<#if clazz.where?exists>
|
||||
where="${clazz.where}"
|
||||
</#if>
|
||||
<#if clazz.table.subselect>
|
||||
subselect="${clazz.table.getSubselect()}"
|
||||
</#if>
|
||||
<#if c2h.hasCustomEntityPersister(clazz)>
|
||||
persister="${clazz.getEntityPersisterClass().name}"
|
||||
</#if>
|
||||
<#if clazz.table.rowId?exists>
|
||||
rowid="${clazz.table.rowId}"
|
||||
</#if>>
|
||||
<#assign metaattributable=clazz/>
|
||||
<#include "meta.hbm.ftl"/>
|
||||
|
||||
<#if clazz.table.comment?exists && clazz.table.comment?trim?length!=0>
|
||||
<comment>${clazz.table.comment}</comment>
|
||||
</#if>
|
||||
<#-- TODO: move this to id.hbm.ftl -->
|
||||
<#if !c2h.isSubclass(clazz)>
|
||||
<#if clazz.hasIdentifierProperty()>
|
||||
<#assign property=clazz.getIdentifierProperty()/>
|
||||
<#include "id.hbm.ftl"/>
|
||||
<#elseif clazz.hasEmbeddedIdentifier()>
|
||||
<#assign embeddedid=clazz.key/>
|
||||
<#include "id.hbm.ftl"/>
|
||||
</#if>
|
||||
<#elseif c2h.isJoinedSubclass(clazz)>
|
||||
<key>
|
||||
<#foreach column in clazz.key.columnIterator>
|
||||
<#include "column.hbm.ftl">
|
||||
</#foreach>
|
||||
</key>
|
||||
</#if>
|
||||
|
||||
<#-- version has to be done explicitly since Annotation's does not list version first -->
|
||||
<#if pojo.hasVersionProperty()>
|
||||
<#assign property=clazz.getVersion()/>
|
||||
<#include "${c2h.getTag(property)}.hbm.ftl"/>
|
||||
</#if>
|
||||
|
||||
<#foreach property in clazz.getUnjoinedPropertyIterator()>
|
||||
<#if c2h.getTag(property)!="version" && c2h.getTag(property)!="timestamp">
|
||||
<#include "${c2h.getTag(property)}.hbm.ftl"/>
|
||||
</#if>
|
||||
</#foreach>
|
||||
|
||||
</${c2h.getTag(clazz)}>
|
||||
2057
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernate.reveng.xml
Normal file
2057
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernate.reveng.xml
Normal file
File diff suppressed because it is too large
Load Diff
405
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernateFK.reveng.xml
Normal file
405
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernateFK.reveng.xml
Normal file
@@ -0,0 +1,405 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >
|
||||
<!-- In questo file vanno configurate tutte le tabelle che hanno una FK FISICHE verso altre tabelle -->
|
||||
<hibernate-reverse-engineering>
|
||||
|
||||
|
||||
<type-mapping>
|
||||
<sql-type jdbc-type="NUMERIC" hibernate-type="java.lang.Long" />
|
||||
</type-mapping>
|
||||
<!-- NON CANCELLARE -->
|
||||
<table-filter match-name="PER_NON GENERARE_TUTTO"/>
|
||||
<!--
|
||||
<table-filter match-name="HZ_PITAGORA_OUT"/>
|
||||
<table-filter match-name="HZ_STORICO_RICH_CESS_OLO"/>
|
||||
<table-filter match-name="HZ_STORICO_RICHIESTA"/>
|
||||
<table-filter match-name="MNP_CAUSALE_RIFIUTO"/>
|
||||
<table-filter match-name="MNP_EVASIONE_REC"/>
|
||||
<table-filter match-name="MNP_EVENTO_GOVERNANCE"/>
|
||||
<table-filter match-name="MNP_GEST_RICH_DON_TC"/>
|
||||
<table-filter match-name="MNP_GEST_RICH_DON_VIRT_TC"/>
|
||||
<table-filter match-name="MNP_GEST_RICH_REC_TC"/>
|
||||
<table-filter match-name="MNP_GEST_RICH_REC_VIRT_TC"/>
|
||||
<table-filter match-name="MNP_GISP_CESS_RESTTP_OUT"/>
|
||||
<table-filter match-name="MNP_GUI_DONOR"/>
|
||||
<table-filter match-name="MNP_GUI_PORTING"/>
|
||||
<table-filter match-name="MNP_GUI_RECIPIENT"/>
|
||||
<table-filter match-name="MNP_LOV_REF"/>
|
||||
<table-filter match-name="MNP_OLO_PREFISSI"/>
|
||||
<table-filter match-name="MNP_PROCESSO_LOG"/>
|
||||
<table-filter match-name="MNP_REPORT_PARAM"/>
|
||||
<table-filter match-name="MNP_SBLOCCO_RICHIESTE"/>
|
||||
|
||||
|
||||
|
||||
|
||||
<table-filter match-name="MNP_STORICO_CESS"/>
|
||||
<table-filter match-name="MNP_STORICO_CESS_PORTING"/>
|
||||
<table-filter match-name="MNP_STORICO_PORTING"/>
|
||||
<table-filter match-name="MNP_STORICO_RICH_DON_VIRT"/>
|
||||
<table-filter match-name="MNP_STORICO_RICH_REC_VIRT"/>
|
||||
<table-filter match-name="MNP_XML_ACK_IN"/>
|
||||
<table-filter match-name="MNP_XML_ACK_IN_FP"/>
|
||||
<table-filter match-name="MNP_XML_ACK_OUT"/>
|
||||
<table-filter match-name="MNP_XML_ACK_OUT_FP"/>
|
||||
<table-filter match-name="MNP_XML_RICHIESTA_IN"/>
|
||||
<table-filter match-name="MNP_XML_RICHIESTA_OUT"/>
|
||||
<table-filter match-name="MNP_XML_RIPETIZIONI_OUT"/>
|
||||
<table-filter match-name="MNP_XML_SCARTO"/>-->
|
||||
|
||||
<table name="HZ_PITAGORA_OUT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="HZ_STORICO_RICH_CESS_OLO">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="HZ_STORICO_RICHIESTA">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_CAUSALE_RIFIUTO">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_EVASIONE_REC">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_EVENTO_GOVERNANCE">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_FLUSSI_PATTERN">
|
||||
<primary-key >
|
||||
<generator class="assigned" />
|
||||
<key-column name="ID_FLUSSO"/>
|
||||
<key-column name="ID_PATTERN"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_FLUSSI_SISTEMI_INTERNI">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_FUNZIONALITA_GUI">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GEST_RICH_DON_TC">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GEST_RICH_DON_VIRT_TC">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GEST_RICH_REC_TC">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GEST_RICH_REC_VIRT_TC">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GISP_CESS_RESTTP_OUT">
|
||||
<primary-key >
|
||||
<generator class="sequence">
|
||||
<param name="sequence">SEQ_CESS_RESTTP_OUT</param>
|
||||
</generator>
|
||||
</primary-key>
|
||||
<column name="DATA_ULTIMO_INVIO" exclude="false" jdbc-type="DATE" type="timestamp"/>
|
||||
<column name="DATA_CREAZIONE" exclude="true"/>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GUI_DONOR">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GUI_PORTING">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_GUI_RECIPIENT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_LOV_REF">
|
||||
<primary-key >
|
||||
<generator class="assigned" />
|
||||
<key-column name="LOV_ID"/>
|
||||
<key-column name="LOV_ID_REF"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_OLO_PREFISSI">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_PROCESSO_LOG">
|
||||
<primary-key >
|
||||
<generator class="assigned" />
|
||||
<key-column name="CODICE_PROCESSO"/>
|
||||
<key-column name="CODICE_LOG"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_PROFILI_FUNZIONALITA">
|
||||
<primary-key >
|
||||
<generator class="assigned" />
|
||||
<key-column name="CODICE_PROFILO"/>
|
||||
<key-column name="ID_PROG"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_PROFILI_UTENTE">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_REPORT_PARAM">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_SBLOCCO_RICHIESTE">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_STORICO_CESS">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_STORICO_CESS_PORTING">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_STORICO_PORTING">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_STORICO_RICH_DON_VIRT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_STORICO_RICH_REC_VIRT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_UTENTI">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_ACK_IN">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_ACK_IN_FP">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_ACK_OUT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_ACK_OUT_FP">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_RICHIESTA_IN">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
<key-column name="CODICE_PROFILO"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_RICHIESTA_OUT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_RIPETIZIONI_OUT">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
<table name="MNP_XML_SCARTO">
|
||||
<primary-key >
|
||||
<generator class="assigned"/>
|
||||
</primary-key>
|
||||
<foreign-key>
|
||||
<many-to-one exclude="true"/>
|
||||
</foreign-key>
|
||||
</table>
|
||||
|
||||
</hibernate-reverse-engineering>
|
||||
62
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernateGen.cfg.xml
Normal file
62
dbcmnpsrc/FE/mnpdev/test/hibernate/hibernateGen.cfg.xml
Normal file
@@ -0,0 +1,62 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<!DOCTYPE hibernate-configuration PUBLIC
|
||||
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
|
||||
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
|
||||
|
||||
<!-- Generated by MyEclipse Hibernate Tools. -->
|
||||
<hibernate-configuration>
|
||||
|
||||
<session-factory >
|
||||
<property name="connection.username">MNP_TEST</property>
|
||||
<property name="connection.url">
|
||||
jdbc:oracle:thin:@(description=(address=(host=10.174.28.38)(protocol=
|
||||
tcp)(port=1521))(connect_data=(service_name=DB_SVI)(INSTANCE_NAME
|
||||
= DB_SVI)))
|
||||
</property>
|
||||
<property name="dialect">
|
||||
org.hibernate.dialect.Oracle9Dialect
|
||||
</property>
|
||||
<property name="hibernate.query.factory_class">
|
||||
org.hibernate.hql.classic.ClassicQueryTranslatorFactory
|
||||
</property>
|
||||
<property name="cache.use_second_level_cache">false</property>
|
||||
<property name="connection.password">MNP_TEST</property>
|
||||
<property name="connection.driver_class">
|
||||
oracle.jdbc.driver.OracleDriver
|
||||
</property>
|
||||
<property name="transaction.auto_close_session">true</property>
|
||||
<property name="show_sql">true</property>
|
||||
<property name="default_schema">MNP_TEST</property>
|
||||
|
||||
<!-- TISCALI -->
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliNotificaDonOut.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliNotificaRecOut.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliPortingIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliScartoPortingIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliScartoValidazIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpTiscaliValidazIn.hbm.xml" />
|
||||
|
||||
<!-- GISP -->
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispRicAttOut.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispRicCessOut.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispRispAttIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispRispCessIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispScartoRispAttIn.hbm.xml" />
|
||||
<mapping
|
||||
resource="mnp/database/hb/dto/MnpGispScartoRispCessIn.hbm.xml" />
|
||||
|
||||
|
||||
</session-factory>
|
||||
|
||||
</hibernate-configuration>
|
||||
Reference in New Issue
Block a user