Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink 2.6 Long Primary Key Mapping PostgreSQL(Why is EclipseLink mapping Long to Integer in PostgreSQL?)
EclipseLink 2.6 Long Primary Key Mapping PostgreSQL [message #1775891] Tue, 07 November 2017 17:01 Go to next message
Rodolfo Fortes is currently offline Rodolfo FortesFriend
Messages: 2
Registered: November 2017
Junior Member
Guys, I need some help, I'm migrating an application from Hibernate to EclipseLink 2.6 but the generated tables has some differences.
A major one that I didn't understand is why EclipseLink is mapping my Long primary key to INTEGER? In Hibernate it was mapped to BIGINT in postgreSQL.

Is there any way to make it map to BIGINT? I'm using postgreSQL 9.6.

Re: EclipseLink 2.6 Long Primary Key Mapping PostgreSQL [message #1784442 is a reply to message #1775891] Wed, 28 March 2018 02:44 Go to previous message
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1389
Registered: July 2009
Senior Member
It should be mapped to BIGINT as well. This is controlled through the PostgreSQLPlatform, through mappings set in the buildFieldTypes method. If this isn't the case, check which database platform is being used, or manually set it using the "" persistence unit property to "PostgreSQL".
Previous Topic:Problem persisting TimestampTZ with JPA
Next Topic:Data too long for column error but it should fit
Goto Forum:

Current Time: Wed Jan 19 08:40:43 GMT 2022

Powered by FUDForum. Page generated in 0.01811 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top