Deplacement Competence debut
/*
 * Session Bean implementation class ServiceGestionEcoleJPA
 */
@Stateless(mappedName = "ServiceGestionEcole")
@LocalBean
@TransactionManagement(TransactionManagementType.CONTAINER)
public class ServiceGestionEcoleJPA implements ServiceGestionEcoleJPARemote, ServiceGestionEcoleJPALocal {

	@PersistenceContext
	private EntityManager entityManager;

    /**
     * Default constructor.
     */
    public ServiceGestionEcoleJPA() {
        // TODO Auto-generated constructor stub
    }

    @TransactionAttribute(TransactionAttributeType.REQUIRED)
    public List<Personne>rechercherPersonne(Personne personne){
    	CriteriaBuilder qb=entityManager.getCriteriaBuilder();

    	CriteriaQuery<Personne> query = qb.createQuery(Personne.class);
    	Root<Personne> personneRoot = query.from(Personne.class);