Dear Hibernate Team,
I'm getting the following Hibernate Exception, anyone knows about it?
Foreign key (FK_1h1baebylkp55202kt9spbbns:DUMMYTABLE [SIZE])) must have same number of columns as the referenced primary key (DUMMYTABLE [SIZE,idx])
This is my hibernate mapping file:
<hibernate-mapping> <class name="DummyTable" table="DUMMYTABLE"> <id name="size" type="java.math.BigInteger"> <column name="SIZE" /> <generator class="assigned" /> </id> <list name="values" inverse="false" table="DUMMYTABLE" lazy="true" access="field"> <key> <column name="SIZE" /> </key> <list-index></list-index> <element type="javax.xml.bind.JAXBElement<java.util.List<java.lang.Double>>"> <column name="VALUES" /> </element> </list> <property name="xargument" type="java.lang.String"> <column name="XARGUMENT" /> </property> <property name="yargument" type="java.lang.String"> <column name="YARGUMENT" /> </property> </class> </hibernate-mapping>
And this is the java class:
@XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "dummyTable", propOrder = { "size", "values" }) public class DummyTable {
@XmlElement(name = "Size") protected BigInteger size; @XmlElementRef(name = "Values", namespace = "<my-own-name-space>", type = JAXBElement.class) protected List<JAXBElement<List<Double>>> values; @XmlAttribute(name = "Xargument", required = true) protected String xargument; @XmlAttribute(name = "Yargument", required = true) protected String yargument;
//getters and setters.... }
Thanks a lot!
|