Skip to main content

ZhaoYongChun

36 articles
Maintainers
Back
  • JSON Field Mapping: Java Objects and Maps

    Map a business object to JSON text using a type annotation, with Map configuration, update semantics and querying boundaries.

  • One Mapper: Builders, Annotations, XML

    Use one order Mapper with a builder default method, an annotated short query and an XML report query.

  • Redis Product Caching with a Mapper

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

  • Milvus Entity Mapping and DAO Design

    Map a Milvus collection to Java entities, organize searches with builders and Mapper methods, and update selected fields.

  • Milvus Hybrid Search: Vectors and Keywords

    Configure BM25 through SQL, retrieve dense-vector and keyword candidates, and return one fused result set using RRF.

  • Milvus Ingestion: Choosing a Write Method

    Use jdbc-milvus for small writes, iterator-based paged ingestion and server-side Import, with distinct handling for counts, job IDs and failures.

  • Milvus with SQL: Queries, ORM and Tools

    Express Milvus writes, business filters and vector search in SQL, execute them through JDBC, then extend to dbVisitor object mapping, Mappers, DataGrip and DBeaver.

  • Mapping BCE Dates: Two Approaches

    BCE dates cause subtle "off-by-one" bugs between Java and databases. dbVisitor 6.7.0 adds JulianDayTypeHandler and PgDateTypeHandler to provide cross-database and PostgreSQL-native mappings. Database date ranges and handler boundaries still need consideration.

  • Key-Value Queries: Two Columns to a Map

    "Select two columns and build a Map" is a common pattern — ID-to-name, code-to-description, etc. The builder-level queryForPairs added in dbVisitor 6.7.0 returns a Map directly in one call, no manual iteration needed.

  • pgvector: Mapping and Similarity Search

    PostgreSQL's pgvector extension enables vector storage and similarity search, but Java lacked a clean mapping. dbVisitor 6.7.0's PgVectorTypeHandler maps vector columns directly to List with full Fluent API support for CRUD and KNN queries.