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> {

...

}

@rbygrave
Copy link
Member

There are no tests yet, nothing added to ebean-querybean/src/test yet.

@dsa-ferreira
Copy link
Author

added some tests, not sure if these are enough or not. please let me know!

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.

2 participants