Repository class
Repository layer annotation - indicates data access layer components
This annotation is a specialization of @Component for classes that
provide data access functionality, typically interacting with databases
or external data sources.
Example:
@Repository()
class UserRepository {
Future<User?> findById(int id) async {
// Database access logic here
}
Future<void> save(User user) async {
// Save logic here
}
}
Constructors
- Repository([String? value])
-
const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited