Sequence with Table for mapped-superclass [message #379582] |
Sun, 17 August 2008 18:11  |
Eclipse User |
|
|
|
Hi All,
I have a BaseModel class with attributed "id".
In the ORM it is mappe as :
<mapped-superclass class="BaseModel">
<attributes>
<id name="id">
<generated-value strategy="TABLE" generator="Sequence"/>
<table-generator name="Sequence"
table="SEQUENCE" initial-value="100"
allocation-size="100" pk-column-name="SEQ_NAME"
value-column-name="SEQ_VALUE"
pk-column-value="BASEMODEL_SEQ"/>
</id>
In addition I have several derived classes for BaseModel such as Person
and Email.
However, for each derived class, I want to map using different sequece
PERSON_SEQ and EMAIL_SEQ. What's the best way to accomplish this with JPA?
It is easy to do in EclipseLink but no idea how to do this with JPA...:(
Tahnks.
|
|
|
|
Powered by
FUDForum. Page generated in 0.45045 seconds