Skip to content

Inherit model properties from super classes #13

Description

@TimothyGillespie

Is your feature request related to a problem? Please describe.
When you look to the last section: I wish that B had the id field as well. Currently, this doesn't seem to be the case. It can lead to reduction of boilerplate code and better maintainability.

I can imagine scenarios where you don't want to inherit these properties. In this case one could add an Annotation on the inheriting class like: @DoNotInheritModelProperties

Describe the solution you'd like
See above

Describe alternatives you've considered
See above.

Additional context
´´´
class A extends Model {
@column
int id;
}

class B extends A {}
´´´

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions