Win a copy of Mastering Corda: Blockchain for Java Developers this week in the Cloud/Virtualization forum!
  • 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
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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...!!!
 
reply
    Bookmark Topic Watch Topic
  • New Topic