[ http://jira.andromda.org/browse/HIB-32?page=comments#action_12340 ] Thomas Schmidt commented on HIB-32: -----------------------------------
I have implemented a simple solution. (3.2-RC1-SNAPSHOT) three new Tagged Values: @andromda.hibernate.discriminator.column @andromda.hibernate.discriminator.type @andromda.hibernate.discriminator.value with witch one your are able to define the columnname, the type and the value manually in model I have added two new namespace-Properties: defaultHibernateDiscriminatorColumn (default:class) defaultHibernateDiscriminatorType (default:string) If you are interested in it, I like to add a CVS-diff to the issue. > Discriminator value should be configurable > ------------------------------------------ > > Key: HIB-32 > URL: http://jira.andromda.org/browse/HIB-32 > Project: Hibernate Cartridge > Type: Improvement > Versions: 3.0M3 > Reporter: Martin Vlcek > Assignee: Martin West > > Using the class name as discriminator value in database tables creates a > dependency of the data on the implementation (and uses quite a lot of space). > It should be possible to specify the discriminator value and column name/type > via tags, e.g. @andromda.hibernate.discriminator.column, > @andromda.hibernate.discriminator.type and > @andromda.hibernate.discriminator.value (where subclasses only specify the > value). ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click