Hi Darius,
thanks for you help...

Darius Jockel wrote:
> 
> The Hibernate Cartridge only generates correct mappings for
> class-(inheritance).
> So, maybe you can change your domain model?
> If you model the document as a class and the document and project as
> subclasses, the Java classes
> and Hibernate mappings should be generated correctly.
> 

Beside the fact that i don't think that it's conceptually correct, is not
possible for us to change our domain model because we have the need to
implement multiple interfaces on a single class, and the same interface will
be implemented by very different domain object.
because is not possible to have multiple inheritance on java classes, using
the suggested approach will lead us to have a real mess in our domain model
with classes hierarchies conceptually wrong and very hard to maintain...


Darius Jockel wrote:
> 
> The Hibernate Cartridge has no big Intterface support. If you draw an
> implementation relation from an
> entity 'EntityA' to an interface 'InterfaceA' , the interface of 'EntityA'
> will be extendet by 'InterfaceA'.
> Thats all. No mapping is generated. It will be hard to change the bavahior
> of the Hibernate Cartridge
> to  take care of interfaces. There are two possibilities:
> 1. Modeltransformation: In front of the Hibernate Cartridge you can
> transform all needed interfaces to 
> Classes. 
> 2. Or you have to extend the Cardridge. All the relevant mappings have to
> be defined also for interfaces.
> 

The first approach described is not possible for the problems mentioned
above...
I think that the second approach is interesting... but i don't want to have
a special customized version of the uml2 cartridge detached from the one in
the repository (especially now with the exit of OAW 5)...
Said so, is anybody interested in such change/implementation in the
cartridge? I think that is extremely important to have such behaviour in the
cartridge and i want to contribute in this changes but i'm a newbie in
cartridges modification, so i need giudance for the first steps...


Darius Jockel wrote:
> 
> Did I help you?
> Regards
> Darius
> 

You did indeed, thank you very much!
Carlo

-- 
View this message in context: 
http://www.nabble.com/-JSF-uml2-cartridge--interface-troubles-tp25530358s17564p25712365.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Fornax-developer mailing list
Fornax-developer@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to