What entries we make in the hibernate config file if we are not using hbm files but annotations?



What entries we make in the hibernate config file if we are not using hbm files but annotations?..

Answer / Ankit Maurya

When using Hibernate annotations, you don't need to define mapping files (hbm.xml), so entries such as `hibernate.archive.autodetection` and other related properties for mapping files will not be needed.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Hibernate Interview Questions

What are the interfaces in hibernate?

1 Answers  


What are the cascade types in hibernate?

1 Answers  


Explain the mechanism by which you can distinguish between transient (i.e. Newly instantiated) and detached objects in hibernate?

1 Answers  


What is difference between jpa and hibernate?

1 Answers  


Why default constructor is required in hibernate?

1 Answers  


How do you map java objects with database tables?

1 Answers  


How is hql query created?

1 Answers  


What is inversejoincolumns in hibernate?

1 Answers  


How do you implement one to many relationships in hibernate?

1 Answers  


What is an example of a one to many relationship?

1 Answers  


What is the process of communication between hibernate with rdbms?

1 Answers  


What does orm consists of?

1 Answers  


Categories