beautypg.com

Spring and hibernate applications – HP Integrity NonStop J-Series User Manual

Page 116

background image

2.

Include Regex Patterns by creating the BrowseAccessIncludeExcludeList.xml
file, and add it to the CLASSPATH (place this file with hibernate.properties/
hibernate.cfg.xml

files). Copy the following into

BrowseAccessIncludeExcludeList.xml

file.








select.*







By default, the interceptor intercepts all the select queries and enables Browse Access. If there
is a need to disable Browse Access for any of the tables or queries, update the
BrowseAccessIncludeExcludeList.xml

file.

Spring and Hibernate

Applications

For Spring and Hibernate applications, you can enable Browse Access through the
configuration as follows:
1.

Create a bean for the class org.hibernate.dialect.SqlmxInterceptor and inject
applyBrowseAccessTo

property with the Regex Patterns in the bean definition file.

For example:

class="org.hibernate.dialect.SqlmxInterceptor">


select.*


116

Hibernate Framework

This manual is related to the following products: