Repository constructor

const Repository()

Marks a class as a repository for use with generic repository patterns, reflection, and code generation.

This annotation is intended to be applied to classes that serve as repositories for entities, typically extending Repository, CrudRepository, or their specialized variants.

Usage Example

@Repository()
class UserRepository extends CrudRepository<User, String> {}

Design Notes

  • Used with reflection via reflectable for runtime or code-generation operations.
  • Can be combined with @Generic for generic repository types.
  • The annotation itself does not implement any repository behavior; it simply marks classes for tooling and runtime inspection.

See Also

Implementation

const Repository();