Skip to main content

v6.7.0: BCE Date Handling

· 3 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

BCE dates cause subtle "off-by-one" bugs between Java and databases. dbVisitor 6.7.0 adds JulianDayTypeHandler and PgDateTypeHandler to solve this from two angles: cross-database portability and PostgreSQL-native support.

v6.7.0: queryForPairs

· 3 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

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

v6.7.0: PgVector Support

· 2 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

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<Float> with full Fluent API support for CRUD and KNN queries.

Dialect Architecture: Separation to Unity

· 5 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

As dbVisitor expanded from RDBMS to NoSQL, the dialect system's abstractions became fragmented. This post explains a deep architectural refactoring that unifies dialect metadata and command building into a cohesive design — no functional changes, pure structural improvement.

dbVisitor's Two-Layer Adapter

· 5 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

dbVisitor's "Two-Layer Adapter" unifies RDBMS and NoSQL access through two abstractions: Layer 1 — a unified API (LambdaTemplate / Mapper) hiding syntax differences; Layer 2 — JDBC-compliant drivers wrapping NoSQL protocols. Use the full stack, or plug just the driver into existing MyBatis/Hibernate projects.

Next-Gen Data Access: dbVisitor

· 12 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

Classic frameworks like Hibernate and MyBatis were built for an RDBMS-only world. As data diversifies into NoSQL, NewSQL, and vector stores, the real challenge shifts to unified access across all of them.

MongoDB the MyBatis Way

· 4 min read
ZhaoYongChun
Maintainers
Hint

This article is generated by AI translation.

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.