Skip to content

Bump version to 2.0-SNAPSHOT and remove Identifiable - #79

Merged
BalusC merged 2 commits into
developfrom
feature/2.0
Nov 3, 2026
Merged

BalusC merged 2 commits into
developfrom
feature/2.0

Conversation

@BalusC

@BalusC BalusC commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

The next release is 2.0 instead of 1.3, because since 1.2 several behaviors changed: the table name defaults to the entity name instead of the class name, AuditedChange reports the entity name, Identifiable is no longer Serializable, ordering on a @OneToMany or @ElementCollection field is correct across pages, and overriding the getters of BaseEntityService no longer affects its internals.

Being a major version, Identifiable is removed instead of deprecated:

  • BaseEntity declares getId() and setId(I) itself, so its subclasses are not affected.
  • Provider#getIdentifier is removed. The ID of a proxy is read via PersistenceUnitUtil#getIdentifier, which, unlike LazyInitializer#getIdentifier() under JPA proxy compliance, does not initialize the proxy.
  • Migration: use Page.ID instead of Identifiable.ID, EntityRepository#getId(E) to get the ID of any entity, and extend BaseEntity or drop implements Identifiable otherwise.

OptimusFaces 1.x references Identifiable, so it does not run on OmniPersistence 2.0. OptimusFaces 2.0 will.

Also bumps the test database H2 to 2.5.252.

All tests pass on H2 with Hibernate, EclipseLink and OpenJPA.

Follow-up to #75

🤖 Generated with Claude Opus 5.5

BalusC and others added 2 commits November 3, 2026 11:17
Since 1.2 the table name defaults to the entity name, AuditedChange
reports the entity name, and several other behaviors changed, so the
next release is a major version. Identifiable is therefore removed
instead of deprecated: BaseEntity declares getId() and setId(I)
itself, and Provider#getIdentifier accepts BaseEntity only. Use
Page.ID instead of Identifiable.ID, and EntityRepository#getId(E) to
get the ID of any entity.

Also bump the test database H2 to 2.5.252.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…Identifier

Provider#getIdentifier read the ID of a Hibernate proxy via
LazyInitializer#getIdentifier(), which initializes the proxy under JPA
proxy compliance. PersistenceUnitUtil#getIdentifier reads it without
initializing the proxy. Provider#getIdentifier had no other use.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@BalusC
BalusC merged commit 9351354 into develop Nov 3, 2026
3 checks passed
@BalusC
BalusC deleted the feature/2.0 branch November 3, 2026 15:36
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