Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

[SCBCD 5.0] Possibly error in EJB 3.0 persistence spec

 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy !

Please take a look at the ejb-3_0-fr-spec-persistence.pdf , page 180, Example 2:



We can see here that LAZY fetching type is applied to *field*

On the other hand, on the page 179, 3rd paragraph:

In particular, lazy fetching might only be available for Basic mappings for which *property-based* access is used.

So, should not it be like that:



Any thoughts ?
 
Lawrence Johnbosco
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess it's because the "Lazy" fetch is just an hint to the persistent provider -- so the provider may not respect the request. In that scenario, allowing "field based" or "property based" access for Lazy fetching is left to the provider and the specification just recommends the provider to support for "property based" lazy fetching --but doesn't mandates it. So the ultimate decision is with the persistent provider.

Please let me know your thoughts.


Regards..Lawrence J
 
Saeed Amer
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mikalai,

Seems that your web site "http://java.boot.by" is down. I am getting "This page cannot be displayed".

Second, I am wondering if you have had a chance to work on any other chapter(s) of your SCBCD 5.0 Exam Study Guide? I downloaded (few days ago) four chapters (1, 2, 10, 11) of your study guide.

Thanks and regards,
Saeed
[ December 06, 2006: Message edited by: Saeed Amer ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic