Skip to content

Add baseline tests for read-only collections and unique-result multi-row paths#48

Merged
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:h73-baseline-tests
Apr 27, 2026
Merged

Add baseline tests for read-only collections and unique-result multi-row paths#48
zspitzer merged 1 commit into
lucee:5.6from
zspitzer:h73-baseline-tests

Conversation

@zspitzer
Copy link
Copy Markdown
Member

Two new test groups locking down 5.6 baseline behaviour for the upcoming Hibernate 7.3 migration.

tests/session/readOnlyEntity/session.setReadOnly() / isReadOnly() API and read-only persistence semantics.

  • isReadOnlyFlag.cfm — round-trip the flag
  • setReadOnlyScalar.cfm — scalar mutation on read-only entity does not persist (passes on 5.6)
  • setReadOnlyCollectionAdd.cfm, setReadOnlyCollectionRemove.cfmxit'd: 5.6 silently lets read-only collections mutate. Hibernate 7.3 fixes this asymmetry (collections of read-only entities are now read-only too); flip xitit after migration.

tests/session/uniqueResultMulti/ — locks down ormExecuteQuery(..., unique=true) semantics.

  • executeQueryUniqueMulti.cfm, executeQueryParamUniqueMulti.cfm — multi-row + unique=true must throw
  • executeQuerySingleMatch.cfm — control: single-match path returns the entity

All 7 active tests green on Lucee 6.2 / 7.0 / 7.1 against Hibernate 5.6. 2 xit'd cases serve as the post-7.3 assertion.

@zspitzer zspitzer merged commit df01627 into lucee:5.6 Apr 27, 2026
9 checks passed
@zspitzer zspitzer deleted the h73-baseline-tests branch April 27, 2026 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant