[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.rt.eclipselink] Sequence with Table for mapped-superclass
|
- From: rama@xxxxxxxxxxxxxxx (Rama Notowidigdo)
- Date: Sun, 17 Aug 2008 22:11:01 +0000 (UTC)
- Newsgroups: eclipse.rt.eclipselink
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
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.