How to call Named Query
Posted
by sandeep
on Stack Overflow
See other posts from Stack Overflow
or by sandeep
Published on 2010-04-30T09:52:28Z
Indexed on
2010/04/30
9:57 UTC
Read the original article
Hit count: 476
jpa
|named-query
I wrote a named query in the entity class Voter
NamedQuery(name = "Voter.findvoter", query = "SELECT count(*) FROM Voter v WHERE v.voterID = :voterID" and where v.password= : password),
I want to call this named query and I also need to set voterID and password.
Can you help me. Thank you
© Stack Overflow or respective owner