Which query returns a Collection of fewer than four elements?

A Reader entity has a one-to-many, bidirectional relationship with a Book entity. Two Reader
entities are persisted, each having two Book entities associated with them. For example, readeM
has booka and bookb, while reader2 has bookc and bookd. Which query returns a Collection of
fewer than four elements?

A Reader entity has a one-to-many, bidirectional relationship with a Book entity. Two Reader
entities are persisted, each having two Book entities associated with them. For example, readeM
has booka and bookb, while reader2 has bookc and bookd. Which query returns a Collection of
fewer than four elements?

A.
SELECT b.reader FROM Book b

B.
SELECT r FROM BookbINNER JOINb.readerr

C.
SELECTrFROM Reader r INNER JOIN r.booksb

D.
SELECTrfrom BookbLEFT JOIN b.readerr LEFTJOINFETCHr.books



Leave a Reply 0

Your email address will not be published. Required fields are marked *