• 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:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding EJB QL

 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

1. I would like to know whether I have to use only Strings in IN operator in EJB Ql where clause.

2. Can I call CMR methods directly from a remote client? My question is CMR methods are returning local component interface, So How remote client can not get the local component interface?

3.Is there any difference between the following two statements.

* Select -------- from movieschema m,directorschema d
where m.title='something' and d.name='something'

* Select -------- from movieschema m
where m.title='something' and m.director.name='something'

4. Is primarykey should be always either userdefined or wrapper class?

Thanks in advance.

regards
RAGHU

[ September 25, 2004: Message edited by: raghu vadranam ]
[ September 25, 2004: Message edited by: raghu vadranam ]
 
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Geez ...

  • You can view the entire BNF of EJB-QL in the EJB specs to find this out.
  • You are right. CMR can only be used locally. If you wanted to do the same thing remotely, try wrapping that functionality in a business method.
  • Looks good to me.
  • Either. There are probably some specific rules about which regular Object-derived classes you can use, but you can still use them. (Like the anonymous primary key, Object).

  • [ September 26, 2004: Message edited by: Nathaniel Stoddard ]
     
    Paddy spent all of his days in the O'Furniture back yard with this tiny ad:
    a bit of art, as a gift, the permaculture playing cards
    https://gardener-gift.com
    reply
      Bookmark Topic Watch Topic
    • New Topic