-->
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.  [ 3 posts ] 
Author Message
 Post subject: Using version element generates an error
PostPosted: Sat Apr 16, 2005 6:43 pm 
Newbie

Joined: Sat Apr 16, 2005 6:26 pm
Posts: 2
Hibernate version:3.0
Hibernate Tools version:3.0 Alpha 1

I am using the Xml Editor (JBoss-IDE) in Eclipse (3.1M6) to edit a simple mapping file. If I add the follwing line to the class, I get an error message. If I remove the offending line, I do not see any error. I am not sure if I am making a mistake or if this is a bug.

The offending like is:

<version name="version"/>

The error message is:

The content of element type "class" must match "(meta*,subselect?,cache?,synchronize*,(id|composite-id),discriminator?,(version|timestamp)?,(property|many-to-one|one-to-one|component|dynamic-component|properties|any|map|set|list|bag|idbag|array|primitive-array|query-list)*,((join*,subclass*)|joined-subclass*|union-subclass*),loader?,sql-insert?,sql-update?,sql-delete?,filter*)". provider.hbm.xml


Thanks for your help.


-Hemant


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 16, 2005 7:17 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The message is indicating it's not matching the DTD. Are you placing the version element in the correct location (relative to the other elements)?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 17, 2005 11:50 pm 
Newbie

Joined: Sat Apr 16, 2005 6:26 pm
Posts: 2
Ordering of the elements was the problem. Once I put the elements in the right order, the problem was resolved.

Thanks, David.

-Hemant


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

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.