Hi,
Im using MyEclipse (last version aviable) from programming with Hibernate 3, and when I tray tu use the Object HibernateSession. This exception is launch by the Tomcat:
%%%% Error Creating SessionFactory %%%%
org.hibernate.MappingException: Foreign key (FK7089409D6A199C:TABLE_A [COLUMN_B])) must have same number of columns as the referenced primary key (SIGMAT_MEDIDA_PUME_15 [COLUMN_A,COLUMN_B,COLUMN_C,COLUMN_D,COLUMN_E])
at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:86)
at org.hibernate.mapping.ForeignKey.setReferencedTable(ForeignKey.java:51)
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:976)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:921)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:999)
at es.indra.sigma.hibernate.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:51)
....
Im using the *.class and *.xml that MyEclise generated, and i dont modific.
Please, Anybody, Cant Help me?