Add json-columns module: JSON columns in Hibernate 7.4.14 (@JdbcTypeCode(SqlTypes.JSON)), JSONB querying, GIN/expression indexes, dirty checking, Jackson 3 vs 2 on PostgreSQL 18.6 and MySQL 8.0.46

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b6Kg9RWSTJzyz6KP9X
This commit is contained in:
Claude
2026-10-30 17:00:46 +00:00
parent 98f4ed7411
commit b83cc9988e
51 changed files with 3178 additions and 0 deletions
@@ -0,0 +1,17 @@
package com.ankurm.jsoncolumns;
import java.util.List;
import java.util.concurrent.CopyOnWriteArrayList;
import org.hibernate.resource.jdbc.spi.StatementInspector;
/** Hibernate statement inspector that records every SQL string. Registered by {@link Db} via a Hibernate property. */
public class SqlLog implements StatementInspector {
private static final List<String> LOG = new CopyOnWriteArrayList<>();
@Override
public String inspect(String sql) { LOG.add(sql); return sql; }
public static void clear() { LOG.clear(); }
public static List<String> take() { List<String> copy = List.copyOf(LOG); LOG.clear(); return copy; }
}