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...!!!