Skip to main content

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

JPA does not allow the same class in the same persistence unit to map to two
different table (how would you know which table to use for
persist/merge/find/etc.).

You can define two separate persistence units that each map the class to a
different table, or you could create a subclass that maps to the different
table.



--
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-tp155163p155448.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.


Back to the top