Java Reference
In-Depth Information
Table 7-10.
Continued
Attribute
Values
Default
Description
cascade
Determines how changes to the parent entity
will affect the linked relation.
catalog
The database catalog against which the queries
should apply.
collection-type
The name of a
UserCollectionType
class describ-
ing the collection type to be used in place of the
defaults.
check
The SQL to create a multirow check constraint
for schema generation.
embed-xml
true
,
false
When using XML relational persistence, indi-
cates whether the XML tree for the associated
entity itself, or only its identifier, will appear in
the generated XML tree.
fetch
join
,
select
The mode in which the element will be retrieved
(
outer-join
, a series of
select
s, or a series of
subselect
s). Only one member of the enclosing
class can be retrieved by
outer-join
.
lazy
true
,
false
Can be used to disable or enable lazy fetching
against the enclosing mapping's default.
mutable
true
,
false
true
Can be used to flag that a class is mutable (allow-
ing Hibernate to make some performance opti-
mizations when dealing with these classes).
name
The (mandatory) name of the attribute. This
should start with a lowercase letter.
node
Specifies the name of the XML element or attrib-
ute that should be used by the XML relational
persistence features.
optimistic-lock
true
,
false
true
Specifies the optimistic locking strategy to use.
outer-join
true
,
false
,
Specifies whether an outer join should be used.
auto
persister
Allows a custom
ClassPersister
object to be
used when persisting this class.
schema
The database schema against which queries
should apply.
subselect
A query to enforce a subselection of the
contents of the underlying table. A class can
only use a
subselect
if it is immutable and read-
only (because the SQL defined here cannot be
reversed). Generally, the use of a database view
is preferable.
table
The name of the table in which the associated
entity is stored.
where
An arbitrary SQL
where
clause limiting the linked
entities.
Search WWH ::
Custom Search