hmm, I thought I had fixed, it was a problem in the merging of the
spring 2 hibernate, sorry.
On Mon, 2005-03-21 at 16:16, Carlos Cuenca wrote:
> >>>> Hi,
> >>>>
> >>>> I had been testing the hibernate cartridge, and the operations
> >>>> inheritance is not working properly, actually I think that the
> >>>> problem is at MetaFacades.
> >>>> Actual situation:
> >>>> if class Parent is abstract and have an abtract operation "Op1",
> >>>> the cartridge defines "Op1" as real within the ParentImpl class
> >>>> (which is not abstract)
> >>>> the correct situation should be
> >>>> Create an abstract ParentImpl class with an abstract method "Op1",
> >>>> and then create the Parent class with the "Op1" defined as real.
> >>>>
> >>>> ...so for this reason it should be taken into account the
> >>>> operations defined on the parents class, and which of them are not
> >>>> declared as real on the inheritance tree. I think this should be
> >>>> done within the getBussinessOperations from the HibernateFacade class.
> >>>
> >>>
> >>>
> >>>
> >>> The animal quiz has an abtract class (DecisionItem) and things are
> >>> generated correctly there...is this something different than that?
> >>
> >>
> >>
> >> sure it is, since in the template will not generate any abstract
> >> class (neither in HibernateEntityImpl nor HibernateEntityImplManual)
> >> ... I guess that is the problem...
> >
> >
> > I'm still not sure what you're talking about? The animal quiz does
> > generate an abstract DecisionItem and abstract DecisionItemImpl class
> > for the modeled abstract DecisionItem. Why would you want to create
> > the Parent class with Op1 defined as real? The Parent class would be
> > the the class that should not be touched.
>
> forget about the operation... the problem is solved when abstract
> modifier is taken into account on the Impl Classes. Actually the problem
> is within the hibernate cartridge, previously it was defining impl class
> with :
> #if ($entity.abstract || !$generateImpl )
> public abstract class ${entity.name}Impl
> #else
> public class ${entity.name}Impl
> #end
>
> and now the HibernateEntityImpl template have:
>
> public class $entity.entityImplementationName
> extends $entity.fullyQualifiedEntityName
>
> ...so it is not using the abstract modifier. I can change it if you're
> agree.
>
> Carlos
>
> >
> >>
> >>>
> >>>
> >>>>
> >>>> any ideas / comments?
> >>>>
> >>>> Carlos
> >>>>
> >>>>
> >>>>
> >>>> -------------------------------------------------------
> >>>> SF email is sponsored by - The IT Product Guide
> >>>> Read honest & candid reviews on hundreds of IT Products from real
> >>>> users.
> >>>> Discover which products truly live up to the hype. Start reading now.
> >>>> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> >>>> _______________________________________________
> >>>> Andromda-devel mailing list
> >>>> [email protected]
> >>>> https://lists.sourceforge.net/lists/listinfo/andromda-devel
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >
> >
> >
> > -------------------------------------------------------
> > SF email is sponsored by - The IT Product Guide
> > Read honest & candid reviews on hundreds of IT Products from real users.
> > Discover which products truly live up to the hype. Start reading now.
> > http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> > _______________________________________________
> > Andromda-devel mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/andromda-devel
> >
> >
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
> _______________________________________________
> Andromda-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/andromda-devel
--
Martin West
01962 712137
07879 680096
http://www.asoh03.dsl.pipex.com/
msn:[EMAIL PROTECTED]
aim:amartinwest
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel