|
From: Sergey V. (JIRA) <no...@at...> - 2006-06-26 14:46:00
|
Shoulb be able to specify cache enties to evict in generated SQL query
----------------------------------------------------------------------
Key: HHH-1854
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1854
Project: Hibernate3
Type: New Feature
Components: core
Versions: 3.2.0.cr2
Environment: Hibernate cr2
Reporter: Sergey Vladimirov
For example:
Query updateQuery = entityManager.createNativeQuery("INSERT INTO "
+ table + "(" + field + ") VALUES(?)");
if (updateQuery instanceof HibernateQuery) {
org.hibernate.Query hibUpdateQuery = ((HibernateQuery) updateQuery)
.getHibernateQuery();
if (hibUpdateQuery instanceof SQLQuery) {
SQLQuery query = (SQLQuery) hibUpdateQuery;
//specify tables to clear after update
}
}
I want to specify, that only table with name from variable "table" should be cleared. Or that some entires should be evicted. But I need to prevent FULL second-level cache eviction.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
|