Dear,
Our projects uses mainly spring.
We have request from the developpers to TAG their queries with the name of the DAO.
Code:
public static final String EXIST_EMPLOYEE_ID =
"SELECT /* EmployeeDAO S.3 */ FIRST_NAME, LAST_NAME FROM USER WHERE KEY = ?";
The point is to quickly find the DAO where the query "spotted" by Oracle performance tools are. It has proove itself usefull (
and very usefull to inform third party that we were monitoring what they were doing in our application).
We also allow third party to query our schema & one of those is written with Hibernate. Is there some mean to do something similar with the query generated by hibernate .... ?
Tia,
\T,
Quote:
-- CONFIG --
Hibernate version: 3.2 (or later the one included in JBoss 4.0.3)
Mapping documents: N/A
Code between sessionFactory.openSession() and session.close(): N/A
Name and version of the database you are using: Oracle 9g
-- CONFIG --