Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[eclipselink-users] Can same class be used to persist object in different tables? Similar to Hibernate <class entity-name=""...>

We have used hibernate in our application and are now migrating it to
Eclispelink, We have mutliple instances where we are essentially using the
same Class to persist the object in different tables based on the
entity-name

While using vanilla hibernate, we have used the following mappings :

<class entity-name="SomeEntity" name="model.SomeEntity"
table="table_some_entity">
<class entity-name="SomeEntityHistory" name="model.SomeEntity"
table="table_some_entity_hist">

Now while migrating to eclispelink, is there some way by which the above
scenario can be achieved ? 

Thanks
Bhakti



--
View this message in context: http://eclipse.1072660.n5.nabble.com/Can-same-class-be-used-to-persist-object-in-different-tables-Similar-to-Hibernate-class-entity-name-tp155163.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


Back to the top