Torsten Juergeleit
Torsten Juergeleit
As a side note: The attribute "Long id key" is not valid here because this [id attribute](http://sculptorgenerator.org/documentation/advanced-tutorial.html#id) is added to every persistent domain object during [model enrichment](http://sculptorgenerator.org/documentation/developers-guide#model-enrichment). Regarding the id...
As mentioned in [a forum post](https://groups.google.com/d/msg/sculptorgenerator/LAOtTHHbzpg/-AxoxjmR60oJ) this could be worked around via a [gap class](http://sculptorgenerator.org/documentation/advanced-tutorial.html#gap-class) or by using the [hint keyword](http://sculptorgenerator.org/documentation/developers-guide#hint) and overriding [`DomainObjectAttributeAnnotationTmpl.columnAnnotations()`](https://github.com/sculptor/sculptor/blob/develop/sculptor-generator/sculptor-generator-templates/src/main/java/org/sculptor/generator/template/domain/DomainObjectAttributeAnnotationTmpl.xtend#L167) via Sculptors [extension mechnism](http://sculptorgenerator.org/documentation/advanced-tutorial.html#overrides-and-extension-mechanism).
How about using a single `@UniqueConstraint` with multiple columns? ``` Entity User { - @Username userName key; - @MobileNumber mobileNumber key; - @Email email key; - @Password password; } ```
Despite of being valid adding an attribute named "id" to a BasicType generates wrong code.
> Is there a plan to do a new release or any updates? In the forum entry [New version of sculptor](https://groups.google.com/d/msg/sculptorgenerator/gnGAYGKqmZg/lmaGtOxEAQAJ) was asked who's interested in a new release. At...
> I was trying to figure out what it would take to add jhipster as a template. [Sculptor's built-in templates](https://github.com/sculptor/sculptor/tree/develop/sculptor-generator/sculptor-generator-templates) can be overridden or extended by using [Sculptor's extension mechanism](http://sculptorgenerator.org/documentation/advanced-tutorial#extension)....
Adding the ChainOverridable annotation to the transformations produces strange exceptions in Xtext, e.g. ``` 22:06:53.732 [main] DEBUG o.s.g.c.ChainOverridableProcessor - Processing class 'org.sculptor.generator.transform.DslTransformation' 22:06:53.736 [main] DEBUG o.s.g.c.ChainOverridableProcessor - Transforming annotated class...
With Xtext / Xtend 2.5.2 this seems to work now. I need this for #99.
Enabling `@ChainOverridable` for `DslTransformation` and using an extension for `DslTransformation` ends up in failing transformation tests: ``` Results : Failed tests: DslTransformationTest.testTransformDslModel:100 Expected: [module1Name, module2Name], Actual: [module1Name, module2Name, module1Name, module2Name]...
Using `@ChainOverridable` on Xtend classes which are maintaining state (explicitly via member variables or implicitly via the create methods cache implementation) leads to strange errors like this. This is due...