package com.l7tech.server;

import com.l7tech.objectmodel.FindException;
import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.PersistentEntity;
import org.springframework.transaction.TransactionStatus;
import org.springframework.transaction.support.TransactionCallback;

class ag implements TransactionCallback<ET> {
   final Goid val$goid;
   final HibernateEntityManager this$0;

   ag(HibernateEntityManager var1, Goid var2) {
      this.this$0 = var1;
      this.val$goid = var2;
   }

   public PersistentEntity doInTransaction(TransactionStatus var1) {
      try {
         return this.this$0.findByPrimaryKey(this.val$goid);
      } catch (FindException var3) {
         throw new RuntimeException(var3);
      }
   }
}
