This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have only seen examples of mapping Hibernate object properties to database table columns. I want to create a Hiberate object which maps to a View in an Oracle database, or alternately to columns in multiple tables. Is this possible ?
views: not a problem, though for the typical non-updateable view you will want to mark things as read-only on the Hibernate side.
mapping to multiple tables: not directly possible in Hibernate 2. Usually you can do the mapping some other fairly reasonable way, so it's not a showstopper. I think Hibernate 3 will have more direct support for this kind of mapping.