I think I have answered a similar question here:
http://www.nabble.com/Multiple-inheritance-levels-td14117902s17564.html

What do you (all) think? Is it important to support multiple inheritance
levels?

/Patrik


cameroon wrote:
> 
> Hi all,
> 
> I am trying to model multi level class inheritance with the sculptor
> model, but the does not work.
> Here is the issue: I have three Entities (E_A, E_B and E_C) and the
> modelling looks like this
> 
> Module MyModule {
>       abstract Entity E_A {
>               String a
>       }
>       abstract Entity E_B extends E_A {
>               String b
>       }
>       Entity E_C extends E_B {
>               String c
>       }
> }
> 
> and during the code generation I got this error:
> 
> [INFO] [fornax-oaw-m2:run-workflow {execution: default}]
> [INFO] oAW Maven2 Plugin V2.0.0
> 0    INFO  WorkflowRunner     -
> --------------------------------------------------------------------------------------
> 10   INFO  WorkflowRunner     - openArchitectureWare 4.2.0, Build
> 200709162219NGT
> 10   INFO  WorkflowRunner     - (c) 2005-2007 openarchitectureware.org and
> contributors
> 10   INFO  WorkflowRunner     -
> --------------------------------------------------------------------------------------
> 10   INFO  WorkflowRunner     - running workflow: workflow.oaw
> 10   INFO  WorkflowRunner     -
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xpand2.Generator
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xpand2.Generator
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.eclipse.mwe.emf.Reader
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.eclipse.mwe.emf.Writer
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xtend.XtendComponent
> 80   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xtend.XtendComponent
> 90   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xpand2.GeneratorAdvice
> 90   WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.xtend.XtendAdvice
> 110  WARN  WorkflowCustomization - Cannot resolve keyword class
> org.openarchitectureware.check.CheckComponent
> 972  INFO  CompositeComponent - Workflow: executing workflow
> sculptorworkflow.oaw in workflow.oaw:3
> 972  INFO  CompositeComponent - Workflow: executing workflow
> org/fornax/cartridges/sculptor/dsl/parser/Parser.oaw in
> sculptorworkflow.oaw:28
> 972  INFO  CompositeComponent - ParserComponent(sculptordsl-parser)
> 3034 INFO  CompositeComponent - IfComponent: executing if
> org/fornax/cartridges/sculptor/dsl/parser/Parser.oaw in
> org/fornax/cartridges/sculptor/dsl/parser/Parser.oaw:9
> 3034 INFO  ConditionalComponent - CheckComponent(sculptordsl-checker):
> expression dslModel.eAllContents.union({dslModel}) check file(s):
> org::fornax::cartridges::sculptor::dsl::GenChecks
> org::fornax::cartridges::sculptor::dsl::Checks
> 3115 INFO  CompositeComponent - XtendComponent(dslTransformation):
> executing 'transformation::DslTransformation'
> 3575 INFO  CompositeComponent - CheckComponent: slot model check file(s):
> constraints/constraints
> 3655 ERROR WorkflowRunner     - Workflow interrupted. Reason: Errors
> during validation.
> 3655 ERROR WorkflowRunner     - Only one level of extension is supported
> E_C extends E_B extends E_A [EMAIL PROTECTED]
> (name: E_C, doc: null) (abstract: false, optimisticLocking: true, cache:
> false, package: null, databaseTable: null) (aggregateRoot: true,
> auditable: true)]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Generation failed
> [INFO]
> ------------------------------------------------------------------------
>  
> Is there or someone knows a best practices about this kind of multi levels
> mapping inheritance?
> 
> Thanks, for advance. 
> 

-- 
View this message in context: 
http://www.nabble.com/problem-with-multi-levels-class-inheritance%3A-Best-practices-tp17598981s17564p17622494.html
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to