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

Dan (JIRA) noreply at atlassian.com
Wed Oct 15 07:22:05 EDT 2008


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

Dan commented on HHH-3125:
--------------------------

The underlying issue that I am having is Sybase specific which is; If you use Long or Integer than the underlying index is not used due to a type conversion under the covers which means that a full table scan is taking to do a look up by PK!. You have to map to BigInteger or Big Decimal to actually get it to use the index. I tried to go the IdentifierGeneratorFactory  but, ended up just using the @Type annotation approach as laid out here: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1936 

> 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