Hibernate Team |
|
Joined: Tue Aug 26, 2003 6:10 am Posts: 8615 Location: Neuchatel, Switzerland (Danish)
|
well it would require you got pretty good into hibernate.
Things that would need to be done:
Add unittests for the various models you want to support and see them fail ;)
Fix JDBCBinder so it will recognize which associations/foreign-keys that will be list's and what column should be used as the list-index (btw. if you do this you could just as well implement Map support too - but lets do that in the next rev ;)
JDBCBinder should use ReverseEngineeringStrategy to identify the type of collection and which column that should be used for the index/map-key.
Then you would need to check that list.hbm.ftl generates the correct code for hbm.xml and eventually also check the annotations generation to see if that generates the apropriate code.
At this point you would be able to do everything programmatically, but to be really complete it should be possible to control in reveng.xml, probably by allowing for a <list>/<map> element under foreign-key with info about which column is the index. This is done in OverrideBinder/OverrideRepository.
Let me know.
_________________ Max
Don't forget to rate
|
|