In hibernate is it necessary to use Transaction while reading?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cwinay
    New Member
    • Jan 2010
    • 8

    In hibernate is it necessary to use Transaction while reading?

    Hi,
    In some examples of hibernate I have seen on the net, people have used Transaction while doing a session.get.
    Is it necessary to use Transaction while reading using hibernate?
    The reason I'm asking this is that today I got a org.hibernate.e xception.LockAc quisitionExcept ion while reading from a table using hibernate.
    The table is on a remote machine and is being used by more than one process.
    Anyways, where to use Transaction and where not to use it is my question.

    Thanks in advance.
Working...