twufire wrote:
Hibernate version:
2.1
Name and version of the database you are using:
Oracle9i
Is there a way to share data classes among different tables in hibernate? I have multiple tables that are named differently but have the same structure. I was wondering if there was a way to use the same data object for multiple tables?
You can configure multiple session factories (thus multiple sessions) with different mappings. This is not elegant solution, though.
In hibernate3 there are named-entities. You just map named entities to tables (not ordinary classes). But this is in alpha stage :(
Artur