This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
the following exception happens during hibernate initialisation:
Initial SessionFactory creation failed.org.hibernate.AnnotationException: A Foreign key refering com.stockdomain.domain.Future from com.stockdomain.domain.BrokerRealTimeFuture has the wrong number of column. should be 2
What could the reason that hibernate says that the number of columns should be 2 ? The Primary key in table "Future" is id, so only one column.
Part of pom.xml :
Joined: Jun 18, 2004
Found the reeason. The class BaseEntity also has a column id, so there was a duplcation.