Create a new repository for an entity type
The entity class
The database adapter to use
The metadata registry to use
The database adapter registry to use
Delete an entity by its ID
The entity ID
Promise resolving when delete is complete
Find entities matching criteria
Query criteria
Promise resolving to array of entities
Find an entity by its ID
The entity ID
Promise resolving to entity or null
Find a single entity matching criteria
Query criteria
Promise resolving to entity or null
Execute a native query specific to the current database
The native query string
Optionalparams: anyParameters for the query
Promise resolving to query results
Save an entity
The entity to save
Promise resolving when save is complete
Generic Repository implementation that works with any database adapter