Win a copy of Beginning Java 17 Fundamentals: Object-Oriented Programming in Java 17 this week in the Java in General 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Qtn Reg EJBQL in HFEJB.

 
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
In the HFEJB - 429. Qtn - 15.

Option 2 says the Identification vaiable can represent a single variable or a collection
-- It is corerct right, since we can use it like
WHERE m.title='some title' and
WHERE d.movies IS EMPTY.

Pls. Clarify my understanding is wrong or not.
 
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Shankar,

An identification variable designates an instance of an entity bean abstract schema type or an element of a collection of entity bean abstract schema types instances.

An identification variable thus always designates a reference to a single value. It is declared in one of two ways; as a range variable or a collection member identification variable:

1. A range variable is declared using the abstract schema name of an entity bean
2. A collection member identification variable is declared using a collection-valued path expression.

For Example:


In the FROM clause declaration IN(o.lineItems) l, the identification variable l evaluates to any LineItem value directly reachable from Order.

The cmr-field lineItems is a collection of instances of the abstract schema type LineItem and the identification variable l refers to an element of this collection. The type of l is the abstract schema type of LineItem.

Hope this clarifies it.
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic