473,320 Members | 2,080 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Hibernate 3, Sybase, Real Datatype and Float Not matching

6
I just be doing something wrong or this is a very dumb bug.

I'm trying to make an entity class to match a table in my sybase12 database... My problem is one of the columns in the table is a "real" type and hibernate is having trouble matching real with float... It seems that the hibernate.dialect.SybaseDialect does not have the "real" type (java.sql.Types = 7).

Has anybody experienced this? is there a solution or am i missing something?

-BJ
Mar 11 '08 #1
2 2489
BigDaddyLH
1,216 Expert 1GB
I just be doing something wrong or this is a very dumb bug.

I'm trying to make an entity class to match a table in my sybase12 database... My problem is one of the columns in the table is a "real" type and hibernate is having trouble matching real with float... It seems that the hibernate.dialect.SybaseDialect does not have the "real" type (java.sql.Types = 7).

Has anybody experienced this? is there a solution or am i missing something?

-BJ
I don't know that database, but if float wasn't accepted try:
- double
- BigDecimal
Mar 11 '08 #2
bje990
6
I just be doing something wrong or this is a very dumb bug.

I'm trying to make an entity class to match a table in my sybase12 database... My problem is one of the columns in the table is a "real" type and hibernate is having trouble matching real with float... It seems that the hibernate.dialect.SybaseDialect does not have the "real" type (java.sql.Types = 7).

Has anybody experienced this? is there a solution or am i missing something?

-BJ


I noobed myself again...

java.lang.Float

http://docs.sun.com/app/docs/doc/819-3659/6n5s6m5a0?a=view
Mar 20 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: computer_prog | last post by:
I have a field of type Real in my SQL 2K database. I stored a value of ..35 in the field. When I "Open Table"->"Return All Rows" in the Enterprise Manager I get back .35 for the field value. ...
3
by: JDPope | last post by:
I have a situation which I cannot get a good lead on how to resolve. One of the applications I support uses the Hibernate software to generate SQL. The app is JAVA with JDBC. In testing the users...
3
by: etienno | last post by:
Hi, what would be the best way to transfert high volume data (100 tables, 500Meg each) between DB2/AS400 to Sybase? Thanks Etienne. Montreal
1
by: db2sysc | last post by:
All, We have listed out the INBUILT Function differences between Sybase and DB2. Kindly provide your feedback or corrections and for CHANGES - DO WE NEED TO CODE our own UDFs?
2
by: Karunakararao | last post by:
Hi All I'm using sybase database, I have a binary datatype column in a table, when I'm trying to store the char(128) value into that, I'm getting syntax violation error. If I take "w" as the...
3
by: Mark | last post by:
What are the best .NET datatypes to handle SQL Server's Float and Real datatypes? I'd like to avoid using the SQL Server specific datatypes like SqlInt32 or similar. Thanks in advance. -Mark
1
by: chandukandula | last post by:
Hi Already my application in Struts using JDBC.At present my application is implemented in Struts with hibernate So i am not changing the SQL queries converting to the like this String...
14
by: Jim Langston | last post by:
The output of the following program is: 1.#INF 1 But: 1.#INF 1.#INF was expected and desired. How can I read a value of infinity from a stream?
1
by: CatchSandeepVaid | last post by:
I have posted this question in hibernate forums also.. As this forum is related to java, i am posting it here also ... In hibernate, presently one-to-one associations are fetched non-lazily... I...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.