Many-to-Many Mapping

Property Description Default

Target entity

The persistent entity to which the attribute is mapped.


Fetch

Defines how data is loaded from the database:

  • Eager – Data is loaded in before it is actually needed.

  • Lazy – Data is loaded only when required by the transaction.

Lazy

Join fetch

The type of fetch to use:

  • Inner – Provides the inner join fetching of the related object.

    Note: Inner joining does not allow for null or empty values

  • Outer – Provides the outer join fetching of the related object

    Note: Outer joining allows for null or empty values.

None

Cascade

Specify which operations are propagated throughout the entity.

  • All – All operations

  • Persist

  • Merge

  • Move

  • Remove

  • Refresh

True


One-to-many mappings also include the following areas: