Hi all,
I have a problem with sequences.
I have a superclass 'animal', and subclasses 'cat' and 'dog'. Both of them
has an unique identifier, with name
'id'.
But the name of the id fields in the database are different, cat has
'cat_id' field, dog has 'dog_id' field.
Is it possible that the SequenceManagerHighLowImpl gives the same id for a
dog and cat??? (I think so...)
It is the expected functioning? (The name of the fields in the class are the
same 'id, getId, setId inherited from the superclass animal', only the names
in the database
are different ('dog_id, cat_id').)
There are two rows in the OJB_HL_SEQ table with different field name, but
the same tablename (SEQ_dog, in harmony with the documentation of the
sequence name generating).
Should I rename the fields to get back unique id, or is there another
solution?
It is not problem, but I want to be sure, that is the cause, because of my
application is so unforseeable.
Or is the bug in my application?
Thank you,
Istvan
The part of the repository.xml:
<class-descriptor
class="Animal"
>
<extent-class class-ref="Dog" />
<extent-class class-ref="Cat" />
</class-descriptor>
<class-descriptor
class="Dog"
table="dog_table"
>
<field-descriptor id="1"
name="id"
column="dog_id"
jdbc-type="INTEGER"
primarykey="true"
autoincrement="true"
/>
<field-descriptor id="2"
name="name"
column="name"
jdbc-type="VARCHAR"
/>
...
<class-descriptor
class="Dog"
table="dog_table"
>
<field-descriptor id="1"
name="id"
column="dog_id"
jdbc-type="INTEGER"
primarykey="true"
autoincrement="true"
/>
<field-descriptor id="2"
name="name"
column="name"
jdbc-type="VARCHAR"
/>
...
---
Viczián István [Viczi] ([EMAIL PROTECTED])
Honlap: http://dragon.unideb.hu/~vicziani
Mobil#: +36(30)3656804 ICQ#: 15803584
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]