Class VirtualEntitySingleIdMapper

  • All Implemented Interfaces:
    IdMapper, SimpleIdMapperBuilder, SimpleMapperBuilder

    public class VirtualEntitySingleIdMapper
    extends SingleIdMapper
    An extension to the SingleIdMapper implementation that supports the use case of an @IdClass mapping that contains an entity association where the @IdClass stores the primary key of the associated entity rather than the entity object itself.

    Internally this mapper is capable of transforming the primary key values into the associated entity object and vice versa depending upon the operation.