When you return an object to Flex it's going to do a deep traversal of
the object graph, so any objects that are lazy are going to be
requested.  That may end up causing problems I guess, so your workaround
is probably correct.

Matt

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of crrb
Sent: Thursday, April 27, 2006 10:05 PM
To: [email protected]
Subject: [flexcoders] Re: Using Hibernate, Gateway pushing out two
Error: null

--- In [email protected], "crrb" <[EMAIL PROTECTED]> wrote:
>
> We're using Mysql 4.1 with Hibernate 3.1, Cairngorm, Flex 1.5, and
> Hibernate Synchronizer to auto generate Java classes and AS classes.
...
> Flex, it appears to matter that the 2nd two Objects are "lazy
> loaded" by Hibernate.  If I force one of them, and it's the only one
> that exists, the system doesn't hang.  I can't force both of them

Right or wrong, the items causing the problem were many-to-one items
that could be forced to load, so putting "lazy=false" in the hibernate
hbm for the two sub-classes tells hibernate to not lazy load them
(even tho it shouldn't have been doing so anyway, based upon my
interprestation of the docs) and our interface stopped having a
problem.  As long as lazy loading isn't required, we're getting along
fine.  Good thing it's a small set of objects.

Roxanne






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links








--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to