[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3125) BigDecimal support for id generator from DB sequence

Steve Ebersole (JIRA) noreply at atlassian.com
Tue Oct 14 18:17:12 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3125?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=31435#action_31435 ] 

Steve Ebersole commented on HHH-3125:
-------------------------------------

BigDecimal with a scale of 0 would approximate an integer (zero significant digits right of the decimal).

Floating point values as a PK makes zero sense.  JDBC type mapping suggests that both DECIMAL and NUMERIC SQL types be mapped to BigDecimal which is why the driver is reporting them that way.  Really these columns should be defined as INTEGER or BIGINT which are the SQL defined integer datatypes.

> BigDecimal support for id generator from DB sequence
> ----------------------------------------------------
>
>                 Key: HHH-3125
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3125
>             Project: Hibernate Core
>          Issue Type: New Feature
>         Environment: Hibernate 3.2, Oracle 10
>            Reporter: Tomas Rada
>            Assignee: Steve Ebersole
>
> Currently with using BigDecimal as entity id is thrown exception " this id generator generates long, integer, short or string" - class "IdentifierGeneratorFactory".
> Is there possibility to add BigDecimal support for id generator?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the hibernate-issues mailing list