of

public static Repository<I, E> of<I, E extends Entity<I, ? extends Object>>(Class<E> cls)

Creates default repository for the passed entity class.

Default repositories are useful when no customization (for example, custom routing) is required for managing entities of the passed class.

Return

new repository instance

Parameters

cls

the class of entities

<I>

the type of entity identifiers

<E>

the type of entity