Can anyone point me to some example code that will show me how to use JSF and Hibernate together in a small web app that simply needs to display some rows out of a database and let the user update fields from those rows at will? I have a mock up working, where I get a List from Hibernate full of database rows, which are then displayed using a JSF DataTable (where each field appears in its own inputText component).
How do I get Hibernate to persist changes I make to fields on the web form to the database? How does Hibernate “know” which row I’ve made changes to (the way JSF does automatically)?