openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Question about Entity names in JPA Queries
Date Thu, 13 Nov 2008 10:07:44 GMT

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.


Mime
View raw message