[hibernate-users] Stale query cache by column

Luiz Fernando O. C. Real luiz.real at caelum.com.br
Thu Mar 24 11:06:28 EDT 2011


Hi,

I'm trying to implement a custom QueryCache that, like the example in
http://community.jboss.org/wiki/QueryCache, does not invalidate some
existing register is updated in a specific table. However, unlike the
example, I'd like to do that by analyzing which columns were changed in an
update.

More precisely, I have an User table, which has a lastLogin column. I'd like
to keep the QueryCache valid when I update the lastLogin of an User.

I haven't found any way to do that yet. Is that possible?

Thanks in advance.

--
Luiz F. O. Corte Real

Vida Geek
http://vidageek.net

Caelum Objects
http://www.caelumobjects.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-users/attachments/20110324/e50231f2/attachment.html 


More information about the hibernate-users mailing list