0

How to solve this on jpa query on spring boot? I have error implement this query

@Override
public List<Artikel> find(String judul) {
    EntityManager em = emf.createEntityManager();
    return em.createQuery("from Artikel where judul like %:'"+judul+"'%",    Artikel.class).getResultList();
}

Can you help me please to solve it? I want it, implement with entity manager, WITHOUT REPOSITORY

Koraktor
  • 41,357
  • 10
  • 69
  • 99

0 Answers0