Skip Headers

# Using Java

Previous

Next

When creating mappings through the Java API, all foreign reference mappings default to using value-holder indirection and all transformation mappings default to not using indirection.

To disable indirection use `ForeignReferenceMapping` method `dontUseIndirection`.

To enable value holder indirection, use `ForeignReferenceMapping` method `useBasicIndirection`.

To enable transparent container indirection, use one of the following `CollectionMapping` methods:

- `useTransparentCollection`

- `useTransparentList`

- `useTransparentMap`

- `useTransparentSet`

To enable proxy indirection, use `ObjectReferenceMapping` method `useProxyIndirection`.

This section provides additional information on the following:

- Configuring ValueHolder Indirection

- Configuring ValueHolder Indirection With Method Accessing

- Configuring ValueHolder Indirection With EJB 3.0 on OC4J

- Configuring IndirectContainer Indirection

- Configuring Proxy Indirection