return (Article)getJpaTemplate().execute(new JpaCallback<Article>() {
public Article doInJpa(EntityManager em) {
CriteriaBuilder criteriaBuilder =em.getCriteriaBuilder();
CriteriaQuery<Article> query= criteriaBuilder.createQuery(Article.class);
Root<Article> auth = query.from(Article.class);
Article Article=null;
query.select(auth).where(criteriaBuilder.equal(auth.get("name"),name));
List<Article> result = em.createQuery(query).getResultList();
if(result.isEmpty())
return null;
Article=(Article) result.get(0);