• Post Reply Bookmark Topic Watch Topic
  • New Topic

List all the tables using hibernate  RSS feed

 
Nitesh Golchha
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to list all the tables in the database using Hibernate.
The SQL for the same is :

select * from sysobjects where xtype='u'

What is the Hibernate command that can be used to list out all the tables?

Thanks,
Nitesh
 
Ramon Anger
Ranch Hand
Posts: 56
Chrome Eclipse IDE Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Nitesh,

please take a look at http://stackoverflow.com/questions/4813122/get-all-table-names-set-up-in-sessionfactory

Hope, it helps ...

Best,
Ramon
 
Nitesh Golchha
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ramon,

It worked.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!