ColumnMapping

public interface ColumnMapping<R>

The value mapping rules of entity columns.

A ColumnTypeMapping allows to map column values of certain type to their value in the storage.

Since there is a limited set of possible column types, in most non-testing scenarios it will be more convenient to extend AbstractColumnMapping than to implement this interface directly.

Parameters

<R>

a supertype of all stored values

Inheritors

Functions

Link copied to clipboard
public abstract ColumnTypeMapping<T, ? extends R> of<T>(Class<T> type)
Obtains the mapping rules for the given type.
Link copied to clipboard
public abstract ColumnTypeMapping<? extends Object, ? extends R> ofNull()
Obtains the mapping rules of null.