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.
subject: Hibernate object mapping for a view or multiple tables instead of a single table ?