
Signature
`/()|_| (/-\|\| |-|/-\\/3 |\/|`/ |3/-\|\||)\/\/||)7|-| ||°|-| `/()|_|
/-\5|< |\||(3|_`/
>> I am using MySQL as db, and want to make a bean that has a primary key
>> that references the primary key of another bean through a one - one
[quoted text clipped - 13 lines]
> public abstract BlaLocal getBla();
> }
I want to ensure that three entities have a primary key in the same
sequence. So that if entity1 has a pk of 00001, entity two cannot have
the same pk.
This can be done in relational db's by having another entity responsible
for the primary key sequence, and have the three original entities
primary keys reference the pk of the sequence entity as a foreign key.
This way I can ensure that the primary keys in my three entities are in
the sequence specified in the sequence entity.
I know how to do this in relational databases, but I dont know if this
is possible in EJB or in JBoss 3.0.8.
Olve
Marek Lange - 31 Oct 2003 22:24 GMT
Olve Hansen schrieb:
>>> I am using MySQL as db, and want to make a bean that has a primary
>>> key that references the primary key of another bean through a one -
[quoted text clipped - 26 lines]
> I know how to do this in relational databases, but I dont know if this
> is possible in EJB or in JBoss 3.0.8.
I think it is only supported in JBoss 3.2.x.
-marek