Client and backend. This class is shared: the same code is compiled into your app and into your server, so everything on this page works in both.
public final class Repositories
- Object
- Repositories
Creates session-bound repositories through factories installed by the generated DAO bootstrap.
Callers reference their repository interface, so they compile before implementations are generated.
Methods
public static <T> T create(Class<T> repositoryType, Session session) | Creates an implementation of the annotated repository interface bound to the supplied session. |
Inherited methods
Method details
create
public static <T> T create(Class<T> repositoryType, Session session)Creates an implementation of the annotated repository interface bound to the supplied session.