Same payment hierarchy mapped three ways plus @MappedSuperclass, run with plain Hibernate on H2. Tests assert and write the generated DDL, the INSERT/SELECT SQL, row/insert/FK/nullability counts and the three failures (NOT NULL on a SINGLE_TABLE subclass column, IDENTITY with TABLE_PER_CLASS, querying a @MappedSuperclass); Bench writes indicative polymorphic-query timings. No docs folder: depth lives in the post.
10 lines
392 B
Bash
Executable File
10 lines
392 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Regenerates every file under output/. Needs JDK 25 and Maven 3.9 with access to Maven Central.
|
|
# 01-ddl-*, 02-sql-*, 03-contracts : the JUnit tests (they assert the numbers they print)
|
|
# 04-polymorphic-timings : scripts/bench.sh (indicative timings, not asserted)
|
|
set -euo pipefail
|
|
cd "$(dirname "$0")/.."
|
|
mvn -B clean test
|
|
./scripts/bench.sh
|
|
ls -1 output
|