db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Dudziak <to...@first.fhg.de>
Subject Re: OJB Foreign Key Problem in Persistence Broker (MySQL InnoDB)
Date Wed, 28 Jul 2004 08:21:57 GMT
Thomas Vogt wrote:

> I'm using the Persistence Broker to access the data in an MySQL InnoDB
> Database, when the Primary Key is not in the same order as the foreign
> ky constraint is, OJB seems to erranously mix it up and tries the wrong
> way round, this way it won't find a result.
> OJB only does so in foreign keys, when the object itself is searched
> directly, it is found without any problem.
> I tried to solve the problem on my own, but i did not find the
> problematic part in the source, so could someone with more detail
> knowledge try to identify and fix the problem ?

Why is that a problem ? You could simply change the order of primary 
keys in the class descriptor so that your pk actually matches the fk.
This does not affect the field order in your class nor the column order 
in the database.


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

View raw message