DropEntitiesOnStart

Dropping all entities on start.

The @DropEntitiesOnStart annotation forces the deletion of all entities when creating the repository.

Note: This should only be used for testing or debugging purposes, as ALL entities are permanently deleted!

Example Usage of @DropEntitiesOnStart:

@Collection("customer_repository")
@DropEntitiesOnStart
public interface CustomerRepository extends Repository<Customer, UUID> {
}

Last updated