Package org.jboss.seam.framework

Examples of org.jboss.seam.framework.HibernateEntityIdentifier


  
   @Transactional
   public Object getKey(int rowIndex, List wrappedList, Session session)
   {
      HibernateEntityIdentifier key = new HibernateEntityIdentifier(wrappedList.get(rowIndex), session);
      if (!rows.contains(key))
      {
         rows.add(key);
         setDirty();
      }
View Full Code Here


   }

   @Override
   protected Identifier createIdentifier(Object entity)
   {
      return new HibernateEntityIdentifier(entity, getPersistenceContext());
   }
View Full Code Here

{

   @Override
   protected Identifier createIdentifier(Object entity)
   {
      return new HibernateEntityIdentifier(entity, getPersistenceContext());
   }
View Full Code Here

                setValue("#{countryHome.instance.name}", "foo");
                invokeMethod("#{countryHome.persist}");
                Country country = (Country) getValue("#{countryHome.instance}");
                Session session =  (Session) getValue("#{countryHome.entityManager.delegate}");
               
                HibernateEntityIdentifier hibernateEntityIdentifier = new HibernateEntityIdentifier(country, session);
                assert "foo".equals(((Country) hibernateEntityIdentifier.find(session)).getName());
                HibernateEntityIdentifier hibernateEntityIdentifier2 = new HibernateEntityIdentifier(country, session);
                assert hibernateEntityIdentifier.equals(hibernateEntityIdentifier2);
            }
           
        }.run();
    }
View Full Code Here

TOP

Related Classes of org.jboss.seam.framework.HibernateEntityIdentifier

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.