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.
それは正しい構文ですか?マップに複数の値が含まれており、配列に変換されています。
criteria.add(Restrictions.like("os", "%"+( ((ArrayList<String>)map.get("os") ).toArray())+"%" ) )
それは正しい構文ですか?
マップ内のエントリを反復処理し、それぞれに追加する必要があります
Restrictions.like("os", "%"+entry+"%" )
それらを一緒に結合する
Restrictions.or(...)
を使用して条件に完全なセットを追加します
criteria.add