> For the complete documentation index, see [llms.txt](https://koboo.gitbook.io/en2do/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://koboo.gitbook.io/en2do/get-started/create-the-repository.md).

# Create the Repository

If you want to access the database and apply operations to your entity, a repository must be defined.&#x20;

Keep in mind that the repository isn't a `class`. It's just an `interface`!

To ensure type safety, the type of the entity and the identifier must be specified as type parameters of the `Repository<E, K>` interface.

***ATTENTION:***&#x20;

1. ***First type is the ENTITY (***`<E>`***)***
2. ***Second type is the KEY of the ENTITY (***`<K>`***)***

*Example repository `CustomerRepository`:*

```java
import eu.koboo.en2do.*;
import java.util.*;
 
//          Name of the collection in database
@Collection("customer_repository")//                   Entity    Key / Identifier
public interface CustomerRepository extends Repository<Customer, UUID> {

}
```
