PS. Be careful. I just checked the links in this post and the code page was retrieved from my cache. The new version does *not* have and error message at the top. Hit refresh if it does. :-)
Douglas Douglas McCarroll wrote: > Douglas McCarroll wrote: > >> Thanks. I'll let you know how it goes. >> > > Still stuck. :-) > > Same "Page request made for item with id = '{filmId=null}'" error. > > I believe that I've implemented Jeff's suggestions. > > I've refreshed this code listing so that it reflects my current code: > > http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/code.txt > > Here's my current logging output: > > http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/debug_log_02.txt > > Here's a nice variable view showing what HibernateAssembler.fill() returns: > > http://www.brightworks.com/technology/tech_questions/hibernate_lazy_associations/actor_destination_fill_result_at_app_startup.jpg > > The comments and questions that follow are addressed to Jeff Vroom in > particular, but all are welcome to contribute... > > 1. Jeff explained a while back in this thread that FDMS and Hibernate > currently don't do lazy loading in the same way - > http://tech.groups.yahoo.com/group/flexcoders/message/57339 - I assume > that this explains why fill() is returning so much data on Films in what > is supposed to be a lazy fill() of Actors. > > 2. In any case, both the fill() results and the logging output - which I > believe shows the data being sent over the wire - show the associated > films as having a filmId of zero (in Java) or null (passed over the wire). > > 3. Jeff said that I should set the association properties for my > filmActors destination as one-to-one. I'm guessing that this should be > many-to-one, but am not sure. I've tried both it doesn't help my current > problem, but I'd love a definitive answer on which this should be. > Victor Rubba sent me some code that uses many-to-one for an intermediate > object (albeit one with numeric ID, rather than complex object ID like > mine). This is working code so it seems to support my guess. > > 4. I'm wondering what general approach I should take to resolving this. > Here are my options: > > a. I can continue to post code and logs and hope that Jeff (or > someone else) spots my error or identifies a bug in FDMS. > > b. I can dig in with the debugger. I'm already looking at > HibernateAssembler.java (thanks, Adobe, for making source public!). Now > it occurs to me that Hibernate itself is open source. Should I be > digging into that and trying to figure out why it's giving me Film > instances without ID values? This could be dangerous - I might learn > more Java! :-) Seriously, what's the likelihood that I could help to > resolve this problem by doing this, given that I have more time to put > into this than Jeff does? > > c. I could re-zip the whole project and repost it if anyone else > would like to play with it. > > d. Other suggestions? > > e. All of the above? :-) > > 5. Jeff said, "I think the hibernate assembler is missing an error test > for <snip>. I’ll fix that right away as that would have saved you a lot > of time." > Can I get a copy of the fixed code? > > Finally, thanks to Jeff and to all for all your input so far. > > Douglas > > > > > > > > > > > > > > > -- > 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 Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/