find « Interceptor « JPA Q&A





1. Where can i find the content of defaultStackHibernate interceptor stack?    stackoverflow.com

I am using struts 2 and full-hibernate-plugin-for-struts2. I would like to set fileUpload interceptor <param name="allowedTypes">image/png,image/gif,image/jpeg</param> Where can i find the content of defaultStackHibernate so I can do that?

2. Suggestion : unsaved-value, Interceptor and find()    forum.hibernate.org

This is a suggestion related to http://www.hibernate.org/116.html#A11. What about having an "unsaved-value" value like "table-look" to look in the corresponding entity table and see if a record wih the corresponding PK exists in the db when using saveOrUpdate() ? This should not be too hard to implement I think, even for composite-id PK, and may help many people by solving a ...