What is the code for the Black Table?

What place i should look to find how hibernate get table name for the class in hibernate source code?

  • I am going through hibernate source code. i want to know the place in source code were hibernate gets table name of the Model class. To be clear. I have a Model Class Organization. there is a table in Db organization. Now my question is do hibernate goes to Db and fetch the information of the table organization while/before mapping or anytime. If it is then what place in the code i should look. i am tracking the source code but it a jungle. Appreciate all help.

  • Answer:

    Now got it this is the first time i am answering my own question. answer is hibernate never goes to db. it creates table names and column names based on annotations and mapping configuration. it only goes to db when it is asked to get some data.

Ahmed Jamal Maaz at Quora Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.