Hello,
I have a problem with my seam-generated app
After saving an object using EntityHome, the id returned from the base is always '0'
If I understand the code of the 'persist' method, the id is asked to the DBMS, after inserting a newly created entry :
@Transactional public String persist() { getEntityManager().joinTransaction(); getEntityManager().persist( getInstance() ); getEntityManager().flush(); assignId( PersistenceProvider.instance().getId( getInstance(), getEntityManager() ) ); createdMessage(); return "persisted"; }
org.jboss.seam.framework.EntityNotFoundException: entity not found: com.fitnetapplication.certifications.entity.Certification#0