Using Hibernate 3, and the Eclipse plug-in for artifact generation.
I'm getting a bizarre error when trying to generate the Java classes from my mapping files - the code generation wizard is throwing up an error saying that an attribute can't be found:
Code:
Caused by: org.xml.sax.SAXParseException: Attribute "lazy" is not declared for element "many-to-one".
But the attribute is definitely there in the source document, and the schema export works perfectly well from exactly the same mapping file. The mapping files all specify the hibernate 3 DTD as required.
The Hibernate 2 hbm2java utility also works perfectly fine on these mapping files (that's how I've worked round this at the moment, to generate the classes), but I just can't get the Hibernate 3 tools to work.
I'm thinking it may be some subtle DTD thing, but I really haven't got a clue. 2 days of messing about with classpaths and DTDs have just got me no further forward and hugely frustrated.
Any suggestions gratefully received...
Thanks,
David.