title: TypedQuery equivalent for JPA 1.0
body: <p>I am quite new to JPA and I am using Apress JPA2 text book to learn it. I was trying to do the first example from the book. This following line of code gives me an error:</p>
  
  <p>TypedQuery query = em.createQuery("SELECT e FROM Employee e", Employee.class);</p>
  
  <p>saying that TypedQuery cannot be resolved to a type. After struggling for sometime I realised that I am using JPA version 1 which does not contain TypedQuery but just Query interface. </p>
  
  <p>My question is whether there is an equivalent statement in JPA version 1. Kindly help. Thanks in advance.</p>