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.
hibernateを使用してDB(mySQL)のテーブルからすべてのデータを取得し、その出力をオブジェクトのリストに保存するにはどうすればよいですか?
このリストを使用して、JTableにデータを入力します。
どうですか:
Query q = session.createQuery("from Foo"); List foos = q.list();
Fooテーブルにマップされているエンティティはどこにありますか。しかし、多分私は何かを逃しました。
Foo
GenericDAOの一部であるfindAll()を使用すると、すべてがリストとして返されます。