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 Christian Vejrich <ch...@konsult.atg.se> on 2006/01/17 10:46:28 UTC

possible newbie Question; Wrong Long id when fetching..

When inserting a new object, mysql db with autoincrement the database
stores the object correct and sets an correct id, but when fetching all
the stored objects( ojb does a select *) , the ids in the objects
returned from ojb are completly different ones? Any ideas?

thanks,

-c.

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org


Re: possible newbie Question; Wrong Long id when fetching..

Posted by Armin Waibel <ar...@apache.org>.
Hi Christian,

Christian Vejrich wrote:
> When inserting a new object, mysql db with autoincrement the database
> stores the object correct and sets an correct id, but when fetching all
> the stored objects( ojb does a select *) , the ids in the objects
> returned from ojb are completly different ones? Any ideas?
> 

Could you please post more details. Version of OJB? Code snippet, 
metadata mapping? Generated sql, expected sql,....

regards,
Armin


> thanks,
> 
> -c.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
> For additional commands, e-mail: ojb-user-help@db.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-user-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-user-help@db.apache.org