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 9140149
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T09:28:43+00:00 2026-06-17T09:28:43+00:00

What postgres column type would map to a Java Float type in a hibernate

  • 0

What postgres column type would map to a Java Float type in a hibernate based column?

I have float(19) in my legacy postgres database but if hibernate schema validation is enabled I get this error message.

Wrong column type in realtorprint.templatetype for column height.
Found: float8, expected: float4

Any ideas? My column be float(8) instead of float(19) I can probably get this changed in our legacy database.

  • 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-06-17T09:28:43+00:00Added an answer on June 17, 2026 at 9:28 am

    How hibernate maps Java Types to SQL Types is controlled by a subclass of Dialect corresponding to your RDBMS. Precisely which one you use may depend upon your version of both Hibernate and Postgres.

    But I suspect in most cases, Java float maps to float(4) and Java double maps to float(8).

    This being open source, you can get the code and check to be certain what’s happening in your case.

    You can also substitute your own dialect through configuration, though it’s rarely appropriate. (It’s appropriate for bugfixes occasionally.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a column with the type of Varchar in my Postgres database which
We have a legacy schema file which has the following column names, would like
I currently have a Postgres 8.4 database that contains a varchar(10000) column. I'd like
I have arrival column of type timestamp in table reservations ( I'm using postgres
Using Postgres. I have users, which have items. Items have a column type. I'm
Lets say I have two tables in Postgres: Name: table_rad Column Type id integer
I have a Postgres table containing a column of type text[][] . In JDBC
I have a table in my Postgres database with columns named type, desc, and
I was just wondering if there is a specific postgres column type for regular
I'm trying to change the application schema of a database in Postgres...so I need

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.