-->
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.  [ 4 posts ] 
Author Message
 Post subject: problem while loading dll
PostPosted: Thu Sep 21, 2006 5:38 am 
Regular
Regular

Joined: Thu Aug 24, 2006 2:05 am
Posts: 80
Hi Group,

I am facing problem while loading business entity dll. It is giving me error as below

{"The element 'class' in namespace 'urn:nhibernate-mapping-2.0' has invalid child element 'Property' in namespace 'urn:nhibernate-mapping-2.0'. List of possible elements expected: 'urn:nhibernate-mapping-2.0:meta urn:nhibernate-mapping-2.0:jcs-cache urn:nhibernate-mapping-2.0:cache urn:nhibernate-mapping-2.0:id urn:nhibernate-mapping-2.0:composite-id'."}

Please let me know the solutoin for the same.
-Thanks
Deepak


Top
 Profile  
 
 Post subject: Re: problem while loading dll
PostPosted: Thu Sep 21, 2006 6:56 am 
Expert
Expert

Joined: Thu Jan 19, 2006 4:29 pm
Posts: 348
deepakbadki wrote:
{"The element 'class' in namespace 'urn:nhibernate-mapping-2.0' has invalid child element 'Property' in namespace 'urn:nhibernate-mapping-2.0'. List of possible elements expected: 'urn:nhibernate-mapping-2.0:meta urn:nhibernate-mapping-2.0:jcs-cache urn:nhibernate-mapping-2.0:cache urn:nhibernate-mapping-2.0:id urn:nhibernate-mapping-2.0:composite-id'."}

In class mapping, before <proeprty> elements, there must be either <id> or <composite-id> element.

I.e. the id must be declared before proeprties in mapping.

Gert

_________________
If a reply helps You, rate it!


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 7:17 am 
Regular
Regular

Joined: Thu Aug 24, 2006 2:05 am
Posts: 80
Hi girt,

id field is already there. It seems like MyGeneration tool create buggy mapping file. Because when i create class file using that tool, it is creating mulitple collection object with the same name.

Please let me know if there is something else missing.

-Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 7:26 am 
Regular
Regular

Joined: Thu Aug 24, 2006 2:05 am
Posts: 80
It seems like MyGeneration tool does produce buggy mapping file for complex table relations. Is there any other tool which can generate mapping file for NHibernate?

-Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.