NamedQuery annotations on package

In our projects we want to set NamedQuery annotations in customer specific projects. However our entities are placed in our product projects and we don’t want to clutter our product entities with queries which are customer specific.
The only two ways (I know about)  you can add namedquery annotations which will be interpret by hibernate are:

put [...]

lookup Oracle constraints

Using JDBC,  Hibernate,…   SQL exceptions don’t get more informative, they tend to be even more cryptic.
Errors about foreign keys and primary keys display only the key name, but not the involved tables and columns.
I have created a view to get this information very easy. It displays the table & column and also the [...]

Performance and hibernate

I’ve noticed that we are facing more and more performance issues in our application. At this moment there are two main culprits :

Too much data fetched
We’ve had some problems in the past that too much data was sent from server to client. When using@PropertyDescriptor in our application only the needed data is sent from server [...]