|
From: Sergey V. (JIRA) <no...@at...> - 2006-07-02 14:02:07
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1854?page=all ] Sergey Vladimirov updated HHH-1854: ----------------------------------- Attachment: patch-1.txt patch-2.txt add getAffectedTables and setAffectedTables methods > 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 > Attachments: patch-1.txt, patch-2.txt > > > 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 |