@PrePersist public void prePersist(){
  lockTime=System.currentTimeMillis();
}

@ PrePersist public void prePersist ( ) { lockTime = System . currentTimeMillis ( ) ; }
used to automatically update the timestamp of locks .
