Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| ||||
| Hibernate - Interview Questions and Answers for 'Cognizant (cts)' - 4 question(s) found - Order By Newest | ||||
| ||||
| Ans. 1. First level cache is enabled by default whereas Second level cache needs to be enabled explicitly. 2. First level Cache came with Hibernate 1.0 whereas Second level cache came with Hibernate 3.0. 3. First level Cache is Session specific whereas Second level cache is shared by sessions that is why First level cache is considered local and second level cache is considered global. | ||||
| ||||
| Ans. HBM Files ( Mapping ) DB Connection ( DB Connection String , User Name , Password , Pool Size ) SQL Dialect ( SQL variant to be generated ) Show SQL ( Show / No show SQL on Console ) Auto Commit ( True / False ) | ||||
| ||||
| Ans. Second level cache is shared between sessions. Hibernate by default uses first level cache. Second level cache need to be configurd to use. There are several second level cache e.g eh cache,jboss cache etc. | ||||
| ||||
| Ans. table per hierarchy table per concrete class table per sub class | ||||