You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-user@db.apache.org by ABOU LINA <am...@gmail.com> on 2006/07/21 19:48:52 UTC
Can't generate primary key values for given Identity
Hi,
i have an object that have two primary key. whene i try to make a search
query using pk values as condition i got the
message : Can't generate primary key values for given Identity
i use ojb 1.0.3
thx in advance
look in his mapping file :
<class-descriptor
class ="ma.gov.statistic.stat.module.arch.donnees.Entite"
table ="arch.ENTITE"
>
<field-descriptor id="1"
name="code"
column="CODE"
jdbc-type="VARCHAR"
primarykey="true"
/>
<field-descriptor id="2"
name="annee"
column="ANNEE"
jdbc-type="INTEGER"
primarykey="true"
/>
<field-descriptor id="3"
name="libelle"
column="LIBELLE"
jdbc-type="VARCHAR"
/>
</class-descriptor>
Re: Can't generate primary key values for given Identity
Posted by Armin Waibel <ar...@apache.org>.
Hi,
ABOU LINA wrote:
> Hi,
>
> i have an object that have two primary key. whene i try to make a search
> query using pk values as condition i got the
> message : Can't generate primary key values for given Identity
Could you please post the source code (of your query) and the the stack
trace of the error too?
regards,
Armin
>
> i use ojb 1.0.3
>
> thx in advance
>
> look in his mapping file :
>
> <class-descriptor
>
> class ="ma.gov.statistic.stat.module.arch.donnees.Entite"
>
> table ="arch.ENTITE"
>
>>
>
> <field-descriptor id="1"
>
> name="code"
>
> column="CODE"
>
> jdbc-type="VARCHAR"
>
> primarykey="true"
>
> />
>
> <field-descriptor id="2"
>
> name="annee"
>
> column="ANNEE"
>
> jdbc-type="INTEGER"
>
> primarykey="true"
>
> />
>
> <field-descriptor id="3"
>
> name="libelle"
>
> column="LIBELLE"
>
> jdbc-type="VARCHAR"
>
> />
>
> </class-descriptor>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org