This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code 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
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

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 ]
     
    Hey! Wanna see my flashlight? It looks like this tiny ad:
    SKIP - a book about connecting industrious people with elderly land owners
    https://coderanch.com/t/skip-book
    reply
      Bookmark Topic Watch Topic
    • New Topic