[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-3249) Make o.h.id.enhanced.TableGenerator more extension-friendly

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Aug 29 02:23:41 EDT 2008


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole resolved HHH-3249.
---------------------------------

    Resolution: Fixed

> Make o.h.id.enhanced.TableGenerator more extension-friendly
> -----------------------------------------------------------
>
>                 Key: HHH-3249
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3249
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.6
>            Reporter: Tom Muldoon
>            Assignee: Steve Ebersole
>             Fix For: 3.2.x, 3.3.x, 3.4
>
>
> As currently implemented, the org.hibernate.id.enhanced.TableGenerator class declares each member variable as private (instead of protected) which makes extending the class difficult at the very least. For what it's worth, I'm overriding the configure method to base the segment_value off of the "target_table" instead of the "segment_value" - doing so allows me to have one row for each of my entities each of which extend an abstract BaseEntity (which is the class in that defines the id column). Using the enhanced TableGenerator without extension creates one row only.

-- 
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