//????????????????????????????????????????????????????????????????????????????????????????? //--> what i have to set here to make relation with table 3 (PuntoCampionamentoIndagine) ??? //--> The foreign key in datatabse is on the table id (getPuntoCampionamentoIndagineSerial) //??????????????????????????????????????????????????????????????????????????????????????????

2017-03-22 12:04:34 INFO BasicTypeRegistry:139 - HHH000270: Type registration [java.util.UUID] overrides previous : org.hibernate.type.UUIDBinaryType@1134e7712017-03-22 12:04:35 FATAL SessionFactoryManager:78 - Error building Session Factoryorg.hibernate.MappingException: Foreign key (FKn3bbt93c3rbmchvnkl501m0vr:punti_campionamento_indagine_t013 [puntoCampionamentoIndagine_p_punto_campionamento,puntoCampionamentoIndagine_p_tipo_indagine])) must have same number of columns as the referenced primary key (punti_campionamento_indagine_t013 [p_punto_campionamento_indagine]) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:148) at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:130) at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.secondPassCompileForeignKeys(InFlightMetadataCollectorImpl.java:1854) at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.secondPassCompileForeignKeys(InFlightMetadataCollectorImpl.java:1774) at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.processSecondPasses(InFlightMetadataCollectorImpl.java:1593) at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:278) at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.build(MetadataBuildingProcess.java:83) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:418) at org.hibernate.boot.internal.MetadataBuilderImpl.build(MetadataBuilderImpl.java:87) at org.hibernate.boot.MetadataSources.buildMetadata(MetadataSources.java:179) at it.gesp.commons.dao.SessionFactoryManager.initSessionFactory(SessionFactoryManager.java:63) at it.gesp.commons.listeners.AppStartListener.contextInitialized(AppStartListener.java:29) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)Mar 22, 2017 12:04:35 PM org.apache.catalina.core.StandardContext listenerStartSEVERE: Exception sending context initialized event to listener instance of class it.gesp.commons.listeners.AppStartListenerjava.lang.Error at it.gesp.commons.dao.SessionFactoryManager.initSessionFactory(SessionFactoryManager.java:79) at it.gesp.commons.listeners.AppStartListener.contextInitialized(AppStartListener.java:29) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4738) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5181) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1408) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1398) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)