[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-6895) Easier annotation definition of increment generator

Gail Badner (JIRA) noreply at atlassian.com
Wed Feb 1 02:23:10 EST 2012


     [ https://hibernate.onjira.com/browse/HHH-6895?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner updated HHH-6895:
-----------------------------

    Pull Requests: https://github.com/hibernate/hibernate-orm/pull/264

> Easier annotation definition of increment generator
> ---------------------------------------------------
>
>                 Key: HHH-6895
>                 URL: https://hibernate.onjira.com/browse/HHH-6895
>             Project: Hibernate ORM
>          Issue Type: Improvement
>            Reporter: Steve Ebersole
>            Assignee: Gail Badner
>            Priority: Minor
>             Fix For: 4.1.0
>
>
> Useful in tests at least.  Lot of duplication to specify an increment generator currently:
> {code}
> @Id 
> @GeneratedValue( generator="increment" )
> @org.hibernate.annotations.GenericGenerator( name = "increment", strategy = "increment" )
> public Long getId() { .. }
> {code}
> Combined with the fact that the increment generator does not accept configuration, would be nice to be able to just say:
> {code}
> @Id 
> @GeneratedValue( generator="increment" )
> public Long getId() { .. }
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list