Hibernate 3, Sybase, Real Datatype and Float Not matching

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bje990
    New Member
    • May 2007
    • 6

    Hibernate 3, Sybase, Real Datatype and Float Not matching

    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.diale ct.SybaseDialec t does not have the "real" type (java.sql.Types = 7).

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

    -BJ
  • BigDaddyLH
    Recognized Expert Top Contributor
    • Dec 2007
    • 1216

    #2
    Originally posted by bje990
    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.diale ct.SybaseDialec t 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

    Comment

    • bje990
      New Member
      • May 2007
      • 6

      #3
      Originally posted by bje990
      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.diale ct.SybaseDialec t 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=vie w

      Comment

      Working...