Add formula-filter module: @Formula, @Filter and @SQLRestriction in Hibernate 7.4.17.Final (generated SQL, @Formula staleness and unqualified-column trap, filter gaps for find-by-id and collections, applyToLoadByKey, autoEnabled tenant filter, removed @Where; H2)

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_017ic4b3W3uHbHAmM3orhn7b
This commit is contained in:
Claude
2026-11-26 00:45:29 +05:30
parent bd0f33a306
commit ec6eda8650
32 changed files with 1147 additions and 0 deletions
+1
View File
@@ -354,3 +354,4 @@ Modules with their own `pom.xml` that run plain Hibernate without the Spring Boo
| [`one-to-many`](one-to-many/) | `@OneToMany` in Hibernate 7: unidirectional join table vs `@JoinColumn` vs bidirectional `mappedBy`, the SQL each sends, why removing one child from a join-table `List` deletes and re-inserts the rest (and why a `mappedBy` List does not), the bidirectional sync helper, fetch defaults, N+1 fixes, `MultipleBagFetchException` and its three fixes, and the id-based `hashCode` trap; plain Hibernate on H2 (Hibernate `7.4.16.Final`) |
| [`n-plus-one-guard`](n-plus-one-guard/) | Detecting N+1 queries automatically: Hibernate Statistics vs datasource-proxy (what each counts and what each misses), five fixes with statement counts, and a JUnit 6 `@MaxSelects` guard that fails a test with the full SQL list; plain Hibernate on H2 (Hibernate `7.4.16.Final`, datasource-proxy `1.11.1`) |
| [`enums`](enums/) | Enum mapping in Hibernate 7: `ORDINAL` vs `STRING` vs PostgreSQL native enum vs `AttributeConverter` vs JPA 3.2 `@EnumeratedValue`, the DDL each creates, what release 2 reads and writes after a constant is inserted, appended or renamed, `hbm2ddl=update` limits and the migration each change needs; plain Hibernate on H2 and PostgreSQL 18 (Hibernate `7.4.17.Final`) |
| [`formula-filter`](formula-filter/) | `@Formula`, `@Filter` and `@SQLRestriction` in Hibernate 7: the SQL each one adds, `@Formula` staleness and the unqualified-column trap, where filters skip find-by-id, collections and loaded collections, `applyToLoadByKey`, `autoEnabled` tenant filters, and the removed `@Where`; plain Hibernate on H2 (Hibernate `7.4.17.Final`) |