Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generator: Add validations for DomainObject attribute names reserved for persistence or auditing #88

Open
tjuerge opened this issue Dec 30, 2013 · 1 comment
Labels

Comments

@tjuerge
Copy link
Member

tjuerge commented Dec 30, 2013

If DomainObject attribute names which are reserved for persistence or auditing (e.g. id, key, version, uuid, createdDate, ...) are used in the DSL then Sculptor generates invalid code:

ValueObject InvalidAttributes {
    !immutable
    - @InvalidAttributes2 id
    long ^key
    Date uuid
    String version
    String createdDate
}

BasicType InvalidAttributes2 {
    String id
}

So we need a set of validations for attribute names which are reserved for certain domain object configurations.

@tjuerge
Copy link
Member Author

tjuerge commented Feb 2, 2014

Despite of being valid adding an attribute named "id" to a BasicType generates wrong code.

@tjuerge tjuerge removed the 1 - Ready label Jan 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant