# Hibernate annotations not inheritable SQLDelete, Where

**URL:** <https://discourse.hibernate.org/t/hibernate-annotations-not-inheritable-sqldelete-where/5149>\
**Category:** Hibernate ORM\
**Created:** [March 8, 2021, 8:37am UTC](https://discourse.hibernate.org/t/hibernate-annotations-not-inheritable-sqldelete-where/5149 "2021-03-08T08:37:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [March 8, 2021, 1:24pm UTC](https://discourse.hibernate.org/t/hibernate-annotations-not-inheritable-sqldelete-where/5149/2 "2021-03-08T13:24:14Z")

</div>

I don’t know what you think this would do, but you do realize that you must name the table somehow in the `SQLDelete` annotation and would have to have the same column names across all tables for all column references within the expression/predicate of these annotations? If your where clause is so common, you might want to use a programmatic approach like I suggested here: [Use table placeholder on SQLDelete - #2 by beikov](https://discourse.hibernate.org/t/use-table-placeholder-on-sqldelete/5152/2)

---

_[View the full topic](https://discourse.hibernate.org/t/hibernate-annotations-not-inheritable-sqldelete-where/5149)._
