📜
En2Do
  • En2Do
  • Get Started
    • Add as dependency
    • Create the MongoManager
      • MongoManager and ExecutorService
    • Create an Entity
      • Entities without lombok
    • Create the Repository
    • Packing all together
  • METHODS
    • Predefined methods
    • Method keywords
    • Filter keywords
    • AsyncRepository
  • Repository Options
    • What are Repository Options?
    • SeparateEntityId
    • DropEntitiesOnStart
    • DropIndexesOnStart
    • AppendMethodAsComment
  • Usage
    • Sorting
      • Sorting by Annotation
      • Sorting by Parameter
    • Pagination
    • Index
      • Identifier Index
      • Compound Index (Multi-Field-Index)
      • TTL Index
    • Transform
    • Transient
    • TransformField
    • Async
    • UpdateBatch
Powered by GitBook
On this page
  1. Get Started

Packing all together

PreviousCreate the RepositoryNextPredefined methods

Last updated 2 years ago

CtrlK

Now all important classes have been created/instantiated and you can bring things together.

Example of creating instances:

public class Application {

    public static void main(String[] args) {
        MongoManager manager = new MongoManager();
        CustomerRepository repository = manager.create(CustomerRepository.class);
    }
}

Now you can start working with the created CustomerRepository!