Skip to content

Conversation

@dsa-ferreira
Copy link

Extends DeployCreateProperties and ProcessingContext to allow generic types in MappedSuperclasses. This is intended to allow generic types to be used as column types in Entities and QEntities. The main use-case we are trying to achieve is to allow typification of Ids and Id references.

Example of what we want to achieve:

@MappedSuperclass
public abstract class DomainObject<T> {

    @Id
    private T id;

...

    public T getId() {
        return this.id;
    }

...

}

@Entity
public class Client extends DomainObject<ClientId> {

...

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant