Java Reference
In-Depth Information
Named Queries are explained in detail in the next subsection.
In the next screen in the wizard, we can select how associated entities will be fetched
(eagerly or lazily), by default. The default behavior is selected, which is to fetch "one
to one" and "many to one" relationships eagerly, and "one to many" and "many to
many" relationships lazily.
Additionally, we can select what collection type to use for the "many" side of a
"one to many" or "many to many" relationship. The default value is
java.util.
Collection
, other valid values are
java.util.List
and
java.util.Set
.