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

Mock Question HFEJB page 436. Q17.

 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi folks,

This question states that a single_valued_path_expression must have a String value.

According to the spec. 11.2.6.6 we are told that a single valued path expression resolves to the type of the cmp field or cmr field to which the expression navigates, that is the abstract scheme type of the related entity bean. Why is this always a String?

regards,
Simon
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to refer to 11.2.7.8:

single_valued_path_expression [NOT] IN (string-literal [, string-literal]* )
The single_valued_path_expression must have a String value.
 
Simon Ingram
Ranch Hand
Posts: 173
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You are right. I missed the "what's true about JB-QL IN expressions" bit. Thanks once again, Roger.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic