-->
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.  [ 2 posts ] 
Author Message
 Post subject: Using lazy attribute with one-to-one causes non-sensical err
PostPosted: Wed Sep 21, 2005 7:41 am 
Newbie

Joined: Wed Sep 21, 2005 7:21 am
Posts: 1
Hibernate version: Hibernate 3.1 beta

Full stack trace of any exception that occurs:

1. task: hbm2java (Generates a set of .java files)
...
...
Error parsing XML: XML InputStream(21) Attribute "lazy" with value "true" must have a value from the list "false proxy no-proxy ".

Mapping documents:
<class name="FileInfo">
....
<one-to-one name="file" class="File" lazy="true" />
</class>

The error stated above doesn't seem to make sense as the docs state that one-to-one can have: lazy="true|proxy|false".

Any help on this would be greatly appreciated and thanks in advance.


Top
 Profile  
 
 Post subject: lazy="true"
PostPosted: Tue Oct 11, 2005 3:40 pm 
Newbie

Joined: Mon Oct 03, 2005 8:04 pm
Posts: 1
in 3.1+, the lazy="true" was removed from the DTD (which is what is causing your error).

you should use lazy="no-proxy" instead.

(if you've not already read the post, see http://forum.hibernate.org/viewtopic.ph ... ht=noproxy )


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