How to use Hibernate profiler in Spring EntityManager setup
109 views
Skip to first unread message
Kusi
unread,
Mar 20, 2011, 4:02:31 PM3/20/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hibernate Profiler
In the setup instructions is only described how to use Hibernate
profiler with Springs SessionFactoryBean. How must it be used with
EntityManagerSetup instead. Here my example of Hibernate setup in
Spring context:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hibernate...@googlegroups.com
The easiest way would to be to call HibernateProfiler.initialize() via code. If you don't have an entry point in your application to do this, you could create a factory bean that invokes the method or I believe there is a fancy new way to do this in SpringEL -- but I haven't used it.