openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Szalay" <michael.sza...@basis06.com>
Subject AW: Question about Entity names in JPA Queries
Date Thu, 13 Nov 2008 12:49:09 GMT

Thanks!

-----Urspr√ľngliche Nachricht-----
Von: Pinaki Poddar [mailto:ppoddar@apache.org]
Gesendet: Donnerstag, 13. November 2008 11:08
An: users@openjpa.apache.org
Betreff: Re: Question about Entity names in JPA Queries



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