java - How to get JPA 2.0 with JBoss 5.1? -
i reading pro jpa 2 book , trying examples in it. using eclipse kepler , jboss 5.1.0.
in eclipse created dynamic web project jpa project facet. jpa implementation type selected disable library configuration means using jboss's hibernate jpa implementation library.
i got error on line of code:
typedquery<employee> query = em.createquery("select e employee e", employee.class);
these error messages:
typedquery cannot resolved type
the method createquery(string) in type entitymanager not applicable arguments (string, class)
i believe typedquery
introduced in jpa 2.0 means jboss 5.1 have not support jpa 2.0. correct? need can use jpa 2.0 jboss 5.1?
Comments
Post a Comment