<<Mapped SuperClass>> and single table inheritance
--------------------------------------------------

         Key: EJB-78
         URL: http://jira.andromda.org/browse/EJB-78
     Project: EJB Cartridge
        Type: Bug

    Reporter: Luca Dall'Olio
 Assigned to: Vance Karimi 


In my model I have some single-table inheritances but most of my entities 
inherit from a <<Mapped Superclass>> some common data definitions, say for 
example :

<<Mapped SuperClass>>
CommonEntityBase
createdOn : Date
lastUpdate : Date
/\
|
|
<<Entity>>
Vehicle
@andromda.persistence.discriminator.value=V
<<Identifier>> id : Long
make : String
model : String
/\
|
|
<<Entity>>
Car
@andromda.persistence.discriminator.value=C
serial : String
name : String

In this configuration, no discriminator annotations is created in Vehicle, 
whereas Car has the right annotation.
In database, the table has a DTYPE varchar column, if I remove the inheritance 
between CommonEntityBase and Vehicle everything works as expected.

I thought that the <<Mapped Superclass>> (which is not an entity itself) would 
not prevent me from having other hierarchies below it,

This issue has also been discussed in this forum topic :
http://galaxy.andromda.org/forum/viewtopic.php?t=4994

-- 
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


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Reply via email to