Issue Details (XML | Word | Printable)

Key: HHH-3249
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Steve Ebersole
Reporter: Tom Muldoon
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hibernate Core

Make o.h.id.enhanced.TableGenerator more extension-friendly

Created: 23/Apr/08 01:09 PM   Updated: 29/Aug/08 09:53 AM
Component/s: core
Affects Version/s: 3.2.6
Fix Version/s: 3.2.7, 3.3.1, 3.5

Time Tracking:
Not Specified

Issue Links:
Relates
 


 Description  « Hide
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.

 All   Comments   Work Log   Change History   FishEye      Sort Order: Ascending order - Click to sort in descending order
Steve Ebersole added a comment - 28/Aug/08 09:06 AM
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.

Steve Ebersole added a comment - 29/Aug/08 12:57 AM
BTW: HHH-3454