I'm using the latest hibernate tools 3.1. beta1.
I'm getting this error upgrading to the newest hibernate tools:
Code:
Attribute "lazy" with value "true" must have a value from the list "false proxy no-proxy ".
My mapping file has this definition for my many-to-one mapping:
Code:
<many-to-one name="dRange" class="DRange" column="DRANGE_ID" outer-join="true" lazy="true" insert="true" update="true" not-null="false"/>
The DTD I'm using is
Code:
http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd
and it says:
Code:
<!ATTLIST many-to-one lazy (true|false|proxy|no-proxy) #IMPLIED>
My questions are:
1) Why does the error I'm using contradict the DTD I'm using. Is there a newer DTD?
2) Is having outer-join="true" the same as fetch="join"?
3) By specifying outer-join-"true" or fetch="join", is it implict that lazy="false"? Is, so is having the lazy="true" attribute a contradiction? What would happen?
4) If the error is valid, how do I judge whether I need to specify lazy="proxy" or lazy="no-proxy" for cases when I want lazy to be true?
Any help is appreciated. Thanks.