-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: "Attribute not found" in mapping file??
PostPosted: Mon May 23, 2005 9:43 am 
Newbie

Joined: Wed Apr 27, 2005 5:31 am
Posts: 5
Location: UK
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.