• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

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...!!!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic