Add embeddables module: @Embeddable records in Hibernate 7.4.17.Final (columns and round trip, null handling, collections of embeddables and their SQL, record equality vs database equality, @EmbeddedId records, DDD Email value object, failure modes; H2)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b3obqqePfZ9m2Jk5Ub
This commit is contained in:
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Regenerates every file under output/. Needs JDK 25 and Maven 3.9; no database server, no Docker.
|
||||
# ./scripts/run-all.sh
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
mvn -B clean test
|
||||
./scripts/search-setting.sh >/dev/null
|
||||
ls -1 output
|
||||
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env bash
|
||||
# Does the string "create_empty_composites" occur anywhere in the hibernate-core jar the build resolved?
|
||||
# Writes output/10-setting-search.txt. Run after `mvn test` (or any build) so the jar is in ~/.m2.
|
||||
set -euo pipefail
|
||||
cd "$(dirname "$0")/.."
|
||||
V=$(sed -n 's#.*<hibernate.version>\(.*\)</hibernate.version>.*#\1#p' pom.xml | head -1)
|
||||
JAR="$HOME/.m2/repository/org/hibernate/orm/hibernate-core/$V/hibernate-core-$V.jar"
|
||||
TMP=$(mktemp -d)
|
||||
unzip -q -o "$JAR" -d "$TMP"
|
||||
mkdir -p output
|
||||
{
|
||||
echo "# hibernate-core-$V.jar: every class and resource searched for the text 'create_empty_composites'"
|
||||
echo "\$ grep -rl create_empty_composites <unzipped jar> | wc -l"
|
||||
echo "$(grep -rl -a 'create_empty_composites' "$TMP" | wc -l)"
|
||||
echo "\$ grep -rl 'hibernate.use_nationalized_character_data' <unzipped jar> | wc -l # control: a real setting is found"
|
||||
echo "$(grep -rl -a 'hibernate.use_nationalized_character_data' "$TMP" | wc -l)"
|
||||
} > output/10-setting-search.txt
|
||||
rm -rf "$TMP"
|
||||
cat output/10-setting-search.txt
|
||||
Reference in New Issue
Block a user