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

Ability to use a MappedSuperClass without being enhanced as long as it doesn't have persistent fields #173

Closed
rbygrave opened this issue Jul 19, 2014 · 1 comment
Assignees
Milestone

Comments

@rbygrave
Copy link
Member

Ok, I'm pretty sure I understand.

You have a @MappedSuperClass but all the non-static fields on your Model class are annotated with @transient. That means there are no persistent properties on this particular @MappedSuperClass bean and hence it should not need to be enhanced.

Currently you are seeing a IllegalStateException("Super type ameaba.db.model.Model is not enhanced?"). What you want is for Ebean to check that this particular class has no persistence properties (non transient fields) and hence should pass the check even though it is not enhanced.

I understand the issue, I'll look into some more but I expect to be able to fix this issue.

@rbygrave
Copy link
Member Author

Note that this fix also requires the use of the 4.1.5 version of the enhancement agent.

@rbygrave rbygrave added this to the 4.1.4 milestone Jul 19, 2014
@rbygrave rbygrave self-assigned this Jul 19, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant