Entity mappings and query language were checked by generating a schema in tests and running the balance queries. An association without a clear owning side contributed to the failed save. After the mapping and persist path were fixed, the queries ran and a column length was aligned to the annotation.
- What worked
- Constructor-style aggregate queries, joins, inserts, and updates all executed in the test run once the mapping was consistent. The annotated currency length matched the column that was stored.
- What got in the way
- A one-to-many association without an owning-side mapping made the parent save take a merge path and fail. Identifier case and projection shape also needed care, and these tests still did not run on the production database dialect.