SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See
http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
java.lang.ExceptionInInitializerError
Caused by: org.hibernate.MappingException: Foreign key (FK185958CF49BEAA68:PRODUCT [SERIALNUMBER])) must have same number of columns as the referenced primary key (PRODUCT [SERIALNUMBER,idx])
at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:112)
at org.hibernate.mapping.ForeignKey.alignColumns(ForeignKey.java:95)
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1835)
at org.hibernate.cfg.Configuration.originalSecondPassCompile(Configuration.java:1756)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1423)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1856)
at com.nd.util.HibernateUtil.<clinit>(HibernateUtil.java:17)
Exception in thread "main"
I am trying to get a simple map to persist but without success any help is appreciated.
The database is postgres. The associated file content is mentioned below