Calling {{EntityManager#find}} and {{EntityManager . # getReference}} with an object that is not an entity results in : a {{ org.hibernate.HibernateException : Unable to locate persister:
}}, however JPA requires an {{ IllegalArgumentException should }} be thrown instead.
|