mappingClassName (inheritance strategy)
---------------------------------------

         Key: HIB-186
         URL: http://jira.andromda.org/browse/HIB-186
     Project: Hibernate Cartridge
        Type: Bug

    Versions: 3.1    
 Environment: Win XP Prof
    Reporter: Peter Empen
 Assigned to: Carlos Cuenca 


Modeling inheritance="class", the cartrige generates "subclass"; for "subclass" 
it generates "joined-subclass". In HibernateEntityLogicImpl.java I can find: 

    protected String handleGetMappingClassName() 
    { 
        String mappingClassName = CLASS_MAPPING_NAME; 
        final HibernateEntity superEntity = this.getSuperEntity(); 

        if ( 
            (superEntity != null) && 
!superEntity.isHibernateInheritanceInterface() && 
            !superEntity.isHibernateInheritanceConcrete()) 
        { 
            mappingClassName = JOINED_SUBCLASS_MAPPING_NAME; 

            if (this.isHibernateInheritanceClass()) 
            { 
                mappingClassName = SUBCLASS_MAPPING_NAME; 
            } 
            else if (this.isHibernateInheritanceUnionSubClass()) 
            { 
                mappingClassName = UNION_SUBCLASS_MAPPING_NAME; 
            } 
        } 

        return mappingClassName; 
    } 
 
Seems to be a bug. See also:
http://galaxy.andromda.org/forum/viewtopic.php?t=1937&sid=1d4757518783e463b55f8a4d4feb0cfb


-- 
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 xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642

Reply via email to