• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

EJB QL path expression

 
Ranch Hand
Posts: 128
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi ranchers.
Cant understand one thing about subj.
HFEJB, page 406: "YOU CAN'T USE DOT NOTATION TO RETURN A CMR FIELD."
If director is cmr-field then m.director IS NOT OK.

HFEJB, page 435, question 13: "What's true about EJB QL path expression?"
One of the correct answers - B says: Path expression can terminate with either cmr-field or cmp-field.

What is true?

Thanks in advance.
 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Serghei Jelauc:
Hi ranchers.
Cant understand one thing about subj.
HFEJB, page 406: "YOU CAN'T USE DOT NOTATION TO RETURN A CMR FIELD."
If director is cmr-field then m.director IS NOT OK.

HFEJB, page 435, question 13: "What's true about EJB QL path expression?"
One of the correct answers - B says: Path expression can terminate with either cmr-field or cmp-field.

What is true?

Thanks in advance.




In EJB-QL u can return 2 types of data
1. OBJECT(M)
2. M.xxx

when u use OBJECT(M), the Component Interface is returned. When u use M.xxx, the field of the Bean is returned.

Ur first Statement says that u cant use M.address if address is a CMR field
Ur Second Statement says that u can use Object(M.address) if address is a CMR field.

Hope this clarifies...!!!
 
Yeah. What he said. Totally. Wait. What? Sorry, I was looking at this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic