[
https://issues.apache.org/jira/browse/OPENJPA-2940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18080586#comment-18080586
]
ASF subversion and git services commented on OPENJPA-2940:
----------------------------------------------------------
Commit 12f833f7831fba156599117ad92a8d3131c8ff0a in openjpa's branch
refs/heads/OPENJPA-2940 from Richard Zowalla
[ https://gitbox.apache.org/repos/asf?p=openjpa.git;h=12f833f78 ]
[OPENJPA-2940] Fix SchemaManager.validate() and truncate() on PostgreSQL
Two PostgreSQL-specific fixes needed to make TestJDBCSchemaManager pass:
1. PostgreSQL's JDBC driver reports native boolean columns as Types.BIT.
OpenJPA's generic column-type comparison treats BIT as numeric and
silently coerces any VARCHAR mapping to 'upgrade' such columns to
VARCHAR, which defeats SchemaManager.validate() detection of a
genuine VARCHAR -> BOOLEAN schema drift. Override newColumn() to
translate reflected columns whose native type name is 'bool' or
'boolean' back to Types.BOOLEAN so the type comparison treats them
as their true logical type.
2. IDENTITY-column sequences are dropped implicitly with their owning
table, but OpenJPA's schema reflection may still list the sequence
as extant. Override getDropSequenceSQL to emit
'DROP SEQUENCE IF EXISTS' so refresh / truncate actions are
idempotent and don't fail with 'sequence "..." does not exist'
on PostgreSQL 17.
> Implement Jakarta Persistence 3.2
> ---------------------------------
>
> Key: OPENJPA-2940
> URL: https://issues.apache.org/jira/browse/OPENJPA-2940
> Project: OpenJPA
> Issue Type: Improvement
> Reporter: Paulo Cristovão de Araújo Silva Filho
> Priority: Major
> Attachments: image-2026-03-28-14-55-26-463.png
>
>
> Implement Jakarta Persistence API 3.2 as prescribed by
> [specification|https://jakarta.ee/specifications/persistence/3.2/] and
> required by Jakarta EE 11.
> This change requires JDK17 or higher compatibility and needs considerable
> checks.
> I've already pushed a branch (WIP) without the proper API bump, focusing on
> updating dependencies while keeping the project passing its current tests at
> least in default profile.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)