Map User entity to AmsUser table as follows
@Entity
@Table(name = "AmsUser")
public class User implements Serializable {...}then you can continue to use JPQL query as "select u from User u where u.accountNumber = :pnumber" -- View this message in context: http://n2.nabble.com/Question-about-Entity-names-in-JPA-Queries-tp1493278p1493471.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
