DefaultRepository

public interface DefaultRepository

The marker interface for the repositories which do not require creating a custom subclass of Repository.

If no customization is required, of is the easiest way to create an instance of repository for a given entity type.

Inheritors

Functions

Link copied to clipboard
public abstract EntityClass<? extends Object> entityModelClass()
Obtains the class of the managed entity.
Link copied to clipboard
public String logName()
Obtains the logging name of this repository.
Link copied to clipboard
public static Repository<I, E> of<I, E extends Entity<I, ? extends Object>>(Class<E> cls)
Creates default repository for the passed entity class.