I have a scenario where i have the same table columns but with different names like TicketBooking and TicketBookingHistory. I have a single pojo class TicketBooking. Is it possible to provide more than one mapping for this persistent class that is one for TicketBooking and one for TicketBookingHistory ? If so how to do it ?
Thanks
This feature is not supported in Annotations.
I think your should have look in Mapping a class more than once.
The same question can be found in Map Two Identical tables ( same schema…) to same entity in Hibernate.
But all of these are used with xml mapping.