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?