mwardm wrote: But anyway, we shouldn't lose sight of the fact that the original question hasn't been entirely answered:
"I'd like to have classBId available in class A. In case I need to create ValueObject with FK - right now I have to use a.getB.getID which causes two DB queries..." Can't the two queries be prevented by turning off lazy loading? (I'm all high-level theory, me.) Mike. (end of quote) That's my second question. I know I can work-around this by switching off lazy fetching. But it's not optimal - still DAO is making bigger query (getting two objects at onve) than it is necessary. I'm thinking about performance and want to ask if this solution (a.getB().getID()) is the only and recommended solution for getting FKs _________________________________________________________ Reply to the post : http://galaxy.andromda.org/forum/viewtopic.php?p=1395#1395 Posting to http://forum.andromda.org/ is preferred over posting to the mailing list! ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click _______________________________________________ Andromda-user mailing list Andromda-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/andromda-user