Wednesday, June 4, 2014

Get Database/Connection details from hibernate session with out entity mangaer

As many of us dont know that we can get the database metadata information from hibernate session, below sample code will help us to get the db metadata information. class which will implement the hibernate jdbc work interface and override the execute method with connection object as argument, this connection object we will be getting from session of hibernate.

hibernate connection test code to get the db metadata details