• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

EJB QL Query

 
Sreedevi Vinod
Ranch Hand
Posts: 117
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

If secratary is a cmr field of the Manager entity bean, which of the following queries is valid? In HFEJB page 406, it says that you cant use dot notation to return a CMR field. But the specs seem to allow that.

1. SELECT m.secretary FROM Manager AS m

2. SELECT OBJECT(m.secretary) FROM Manager AS m

Thanks,
Devi
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you see this in the spec ?
I read :

11.2.5 Return Value Types
The value of a query result, specified by the SELECT clause, is an entity bean abstract schema type or cmp-field type.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic