(Please ignore incorrect grammar and typo's, English is not my primary language)
Hi all,
Consider this part of my mapping-file:
Code:
<class name="AdresModel" table="ADRES">
<composite-id name="adresnr" class="AdresnrModel">
<key-property name="adresnr"/>
<generator class="AdresnrPKGenerator">
<param name="sequence">SEQ_ADRES</param>
</generator>
</composite-id>
...
...
I have a wrapper (with only one field) for my custom PK, and I want to use a PK-Generator mapped to an oracle sequence with it.
The error I get is this:
Code:
2003-10-08 15:00:33,309 ERROR net.sf.hibernate.util.XMLHelper - Error parsing XML: XML InputStream(20)
org.xml.sax.SAXParseException: Element "composite-id" does not allow "generator" here.
void org.apache.crimson.parser.Parser2.error(java.lang.String, java.lang.Object[])
The funny thing is,
IT WORKS and does perfectly what I want.
But, since the SAXParseException is thrown, is causes some worries. If this mapping-file is not allowed, what is the way to achieve this ?
Thanks in advance.