Hibernate annotations not inheritable SQLDelete, Where


We are using @SQLDelete and @Where in our entities, but the query is almost the same for all tables

Is there a reason to not make those 2 annotations inheritable ?

Best regards.

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