Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7515293
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T00:45:45+00:00 2026-05-30T00:45:45+00:00

i expected below code to create table which has BIGSERIAL column type id. @Entity

  • 0

i expected below code to create table which has BIGSERIAL column type id.

@Entity
public class NewEntity1 implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
...

but it created:

CREATE TABLE NEWENTITY1 (ID  SERIAL NOT NULL, PRIMARY KEY (ID))

i want to make it BIGSERIAL column (not SERIAL). how can i fix this?

my environment:

  • NetBeans7.1
  • GlassFish 3.1.1(NetBeans bundled)
  • EclipseLink 2.3.0.v20110604-r9504(NetBeans bundled)
  • PostgreSQL 9.1.2 (JDBC driver: postgresql-9.0-801.jdbc4.jar)

thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T00:45:46+00:00Added an answer on May 30, 2026 at 12:45 am

    The problem here is that EclipseLink PostgreSQLPlatform hard codes the string it uses within the printFieldIdentityClause to be “SERIAL”. This should be customizable though, so please file a bug to have it changed.

    Other than using columnDefinition, you can create a sublclass of the PostgreSQLPlatform and override the printFieldIdentityClause method to print off what you need. Ie:

    @Override
        public void printFieldIdentityClause(Writer writer) throws ValidationException {
            try {
                writer.write(" SERIAL");
            } catch (IOException ioException) {
                throw ValidationException.fileError(ioException);
            }
        }
    

    and then set your persistence unit properties to use your platform class instead:

    <property name="eclipselink.target-database" value="yourpackage.yourPlatformClass"/>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I get the following error with the code below. expected constructor, destructor, or type
The following section of code is working as expected... create table todel (id int
Code below is not working as expected to detect if it is in design
The code below continues many lines until it ends with a expected /veotherwise /vechoose.
i have below code snippet in my legacy project DetachedCriteria subCriteria = DetachedCriteria.forClass(Employee.class); subCriteria.setProjection(Projections.distinct(Property.forName
In the code below, by calling setAlignmentX with Component.LEFT_ALIGNMENT I expected to get a
I'm trying to fetch some webpages using the code below: public static string FetchPage(string
Assume that in a database table there is a non-key column called RECORD_ID which
My LINQ query is not producing the expected output below. Basically, it's the sum
I expected the following code to print 8, 111 and 999. I supposed that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.