Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
jpa enity managerを使って以下のようなフィルター条件でテーブル内のエントリを探したい
select * from My_Table where (status='A' or status='Z' or status='NA')
これを行う方法を提案してください..
以下を仮定します。
ジャワ
public List findByStatus() { return em.createQuery( "SELECT mt FROM MyTable mt WHERE mt.status in ('A', 'Z', 'NA')") .getResultList(); }