-->
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: XML-20137: (Error) Attribute 'not-found' used but not declar
PostPosted: Thu Nov 17, 2005 12:17 pm 
Newbie

Joined: Sun Sep 18, 2005 4:48 pm
Posts: 3
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

I've a problem when i initialize hibernate config. My problem is that i want to use the attribute 'not-found' in a <many-to-one> and when i startup my app i've got this message:

XML-20137: (Error) Attribute 'not-found' used but not declared.


First i have a mapping like this:
<many-to-one name="direccionPermanenteEmpresa" class="edu.esade.model.informacionpersonal.LocalizacionGeografica" insert="false" update="false" unique="true" cascade="none" >
<formula>NUMERO</formula>
<formula>'PNF'</formula>
<formula>'EMP'</formula>
<formula>'DOM'</formula>
</many-to-one>

and it works fine, but when i add "not-found='ignore'" i get the error below.
<many-to-one name="direccionPermanenteEmpresa" class="edu.esade.model.informacionpersonal.LocalizacionGeografica" not-found="ignore" insert="false" update="false" unique="true" cascade="none" >
<formula>NUMERO</formula>
<formula>'PNF'</formula>
<formula>'EMP'</formula>
<formula>'DOM'</formula>
<!--/one-to-one-->
</many-to-one>


What's the thing that i have doing bad?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 1:05 pm 
Expert
Expert

Joined: Mon Jul 04, 2005 5:19 pm
Posts: 720
which version of the the DTD do you have defined at the top of this document?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 17, 2005 1:06 pm 
Newbie

Joined: Sun Sep 18, 2005 4:48 pm
Posts: 3
I have the 3.0 version of the dtd


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.