[ http://jira.andromda.org/browse/HIB-32?page=comments#action_13290 ] 

Carlos Cuenca commented on HIB-32:
----------------------------------

Hi Thomas,

Thank you very much for your patch. Based on it, and on the tagged values for 
this issue already present on the new ejb3 cartrigde, I had submitted a 
solution.

Tagges values for entities are:

@andromda.persistence.discriminator.column.name: for the discriminator column a 
name
@andromda.persistence.discriminator.type: for the discriminator colum a type
@andromda.persistence.discriminator.value: for the discriminator value on a 
class

Of course the same type and column name should be used on the same hierarchy.

Namespace properties for controlling the default values are:
-defaultEntityDiscriminatorColumn: default column name
-defaultEntityDiscriminatorType: default column type

> 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: Carlos Cuenca
>  Attachments: andromda-hibernate.patch, templates.patch
>
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Reply via email to