This was originally from issue 5 and now split up (Example 22-10 Joining a
Query) A Maven project with sample code that does not compile is attached.
Another syntax error, Please confirm this one.
The following code does not compile:
CriteriaQuery<String> cq = cb.createQuery(String.class);
Metamodel m = em.getMetamodel();
EntityType<Pet> Pet_ = m.entity(Pet.class);
Root<Pet> pet = cq.from(Pet.class);
It should be : EntityType<Pet> pet_ = m.entity(Pet.class);//was Pet_
Pet_ is a class defined previously in the tutorial