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

When using the MappedSuperclass attribute on a non-abstract class, lifecycle callbacks don't work #67

Closed
hex337 opened this issue Jan 12, 2011 · 4 comments

Comments

@hex337
Copy link

hex337 commented Jan 12, 2011

If you have a base class that is not abstract, and set the MappedSuperclass attribute for it, other classes that inherit from it will not get propagated lifecycle callbacks.

@hex337
Copy link
Author

hex337 commented Jan 12, 2011

Hrm... having trouble reproducing this in a simple case.

@jseverson
Copy link
Contributor

I've posted the pull request demonstrating this issue. The exact case is an inherited class with an embedOne, when that document gets updated, the postUpdate event does not get fired for the embedded document. See test file.

@jseverson
Copy link
Contributor

link to pull request with failing test:

#68

@jwage
Copy link
Member

jwage commented Feb 12, 2011

Jay, I think your test case was for another issue. It wasn't related to the mapped super class not being abstract. This is another issue but I am not sure if it is still a problem or not now. Your test for the other issue is passing and fixed in master.

This issue was closed.
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

No branches or pull requests

3 participants