Skip to main content

Working with different databases

4 articles

Use familiar Java APIs for caching, documents, and search.

Back
  • Redis Product Caching with a Mapper

    Use dbVisitor Mapper methods for Redis commands, map products to JSON, and manage cache expiration and eviction.

  • Elasticsearch with Mappers

    In hybrid projects with both MySQL and ElasticSearch, the data access layer often splits between MyBatis XML and complex DSL builders. dbVisitor lets you operate ElasticSearch using the same Mapper interfaces and XML, unifying your data access code.

  • MongoDB the MyBatis Way

    In hybrid projects with both MySQL and MongoDB, the data access layer often feels fragmented — MyBatis Mapper on one side, MongoTemplate on the other. dbVisitor lets you operate MongoDB using the same Mapper interfaces and XML, achieving a unified architecture.

  • Getting Started with MongoDB: Mapping and APIs

    Java ORM tools are mature for RDBMS, but MongoDB's document model needs ODM (Object-Document Mapping) for clean Java integration. This post surveys the landscape and introduces dbVisitor as a JDBC-based solution.