i am new to transactions concept.i want to prevent dirty reads,non repetable reads,panthom reads. i am using @verson attribute on my entity account. can any body suggest
You've got to set proper transaction isolation level in your data source (SERIALIZABLE in your case). @Version annotation is used to turn on optimistic locking policy for a given entity which is separate issue from transaction isolation.