Pessoal estou tentando dar um lock um registro
facoo seguinte
for(TbPapel papel : papelListado){
ConexaoTabelaCusta.getCurrentEM().lock(papel, LockModeType.READ);
}
porem recebo o seguinte erro
<blockquote>xception occurred during event dispatching:
javax.persistence.PersistenceException: ejb30-wrong-lock_called_without_version_locking-index (There is no English translation for this message.)
at oracle.toplink.essentials.internal.ejb.cmp3.base.EntityManagerImpl.lock(EntityManagerImpl.java:583)
</blockquote>
alguem sabe o pq??
valeu