[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3249?page=c...
]
Steve Ebersole updated HHH-3249:
--------------------------------
Assignee: Steve Ebersole
Fix Version/s: 3.3.x
Summary: Make o.h.id.enhanced.TableGenerator more extension-friendly (was:
Enhanced TableGenerator should declare member variables as protected)
Making class attributes protected is evil and will not happen. I can make the class more
extension-friendly, but there are far better techniques for that.
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.3.x
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira