Give me simple example of hibernate caching and explain the
details of caching????? thanks in adv.
Answer / imambasha
caching concept in hibernate is performed internally in
stages...
1)firstlevel(Session) caching
2)Secondlevel(SessionFactory) caching
1)firstlevel(Session) caching:
First-level cache always Associates with the Session
object. Hibernate uses this cache by default. Here, it
processes one transaction after another one, means wont
process one transaction many times. Mainly it reduces the
number of SQL queries it needs to generate within a given
transaction. That is instead of updating after every
modification done in the transaction, it updates the
transaction only at the end of the transaction.
2)Secondlevel(SessionFactory) caching
Second-level cache always associates with the Session
Factory object. While running the transactions, in between
it loads the objects at the Session Factory level, so that
those objects will available to the entire application,
don’t bounds to single user. Since the objects are already
loaded in the cache, whenever an object is returned by the
query, at that time no need to go for a database
transaction. In this way the second level cache works.
| Is This Answer Correct ? | 11 Yes | 2 No |
What is jboss?
whats is mean by filter?
a US company has filed my H1B visa ,, and i got selected in random number process.I wanna ask Could they ask regarding my languages(java,c++) or there will b just general questions?? And wat kind of questions will they ask in embassy interview??
What are JTA/JTS and how they used by client?
diffrence between jsp and servelts.
what is disadvantage of thread?
What restrictions are placed on the values of each case of a switch statement?
whats is mean by class.forName() whats the return type of class
Difference between JRE and JVM?
3 Answers HeadStrong, Infotech,
What is the immediate superclass of the applet class?
i have a 1000 objects in data base i need to display those in jsp's how can i retrive those objects in jsp. (consider the performance issue)
diff mvc1 and mvc2 wahts is mean by servlet chaining?