# Can no longer use @MappedSuperclass and @Inheritance annotations in Hibernate 5.4

**URL:** https://discourse.hibernate.org/t/can-no-longer-use-mappedsuperclass-and-inheritance-annotations-in-hibernate-5-4/2016
**Category:** Hibernate ORM
**Created:** [January 11, 2019, 10:07am UTC](https://discourse.hibernate.org/t/can-no-longer-use-mappedsuperclass-and-inheritance-annotations-in-hibernate-5-4/2016 "2019-01-11T10:07:25Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![vlad](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/vlad/32/658_2.png) [@vlad](https://discourse.hibernate.org/u/vlad)
#### Post date: [January 11, 2019, 11:16am UTC](https://discourse.hibernate.org/t/can-no-longer-use-mappedsuperclass-and-inheritance-annotations-in-hibernate-5-4/2016/2 "2019-01-11T11:16:32Z")

</div>

The mapping is wrong according to the JPA specs. Remove `@MappedSuperclass` and it should work just fine.

---

_[View the full topic](https://discourse.hibernate.org/t/can-no-longer-use-mappedsuperclass-and-inheritance-annotations-in-hibernate-5-4/2016)._
