Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When [Hibernate Envers](https://hibernate.org/orm/envers/) is trigger…
…ed via an `@Audited` annotation, it attempts to insert a record in a related `AUD` table. However, Play! assumes all related entities extend `JPABase`, which the `AUD` tables don't. This leads to a `ClassCastException` because `HashMap` is cast to `JPABase`. By adding a check for `JPABase` here, we can avoid this problem. This effectively also checks for 'not null' which the previous implementation did.
- Loading branch information