Skip to content

Commit

Permalink
#64 #217 - adds tests to showcase issues with @ChainOverridable on Xt…
Browse files Browse the repository at this point in the history
…end classes with create methods #64 #217
  • Loading branch information
tjuerge committed Jan 26, 2020
1 parent 76f64d2 commit a645ff4
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 0 deletions.
@@ -0,0 +1,25 @@
/*
* Copyright 2020 The Sculptor Project Team, including the original
* author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sculptor.generator.transformation.ext

import org.sculptor.generator.chain.ChainOverride
import org.sculptor.generator.transform.DslTransformation

@ChainOverride
class DslTransformationOverride extends DslTransformation {

}
@@ -0,0 +1,25 @@
/*
* Copyright 2020 The Sculptor Project Team, including the original
* author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.sculptor.generator.transformation.ext

import org.sculptor.generator.chain.ChainOverride
import org.sculptor.generator.transform.Transformation

@ChainOverride
class TransformationOverride extends Transformation {

}
@@ -1,2 +1,4 @@
project.nature=business-tier
cartridges=test

defaultOverridesPackage=org.sculptor.generator.transformation.ext
Expand Up @@ -56,6 +56,7 @@ import org.sculptor.dsl.sculptordsl.DslSimpleDomainObject
import org.sculptor.dsl.sculptordsl.DslSubscribe
import org.sculptor.dsl.sculptordsl.DslTrait
import org.sculptor.dsl.sculptordsl.DslValueObject
import org.sculptor.generator.chain.ChainOverridable
import org.sculptor.generator.check.CheckCrossLink
import org.sculptor.generator.ext.Helper
import org.sculptor.generator.ext.Properties
Expand All @@ -76,6 +77,7 @@ import sculptormetamodel.Trait
/**
* Transforms DSL meta model to generator meta model.
*/
@ChainOverridable
class DslTransformation {

static val SculptormetamodelFactory FACTORY = SculptormetamodelFactory.eINSTANCE
Expand Down

0 comments on commit a645ff4

Please sign in to comment.