db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank Renaers" <Frank.Rena...@ikan.be>
Subject Upgrade form 0.9.5 to 1.0rc4 : foreign key problem
Date Wed, 03 Dec 2003 09:37:23 GMT
Hi,

I upgraded from ojb0.9.5 to 1.0 rc4.
Some of my unit tests fail because sometimes foreign key values (1 - N relationship) are not
stored :

Example : 
-------------------------
            // Create productgroup
            ProductGroup pg = new ProductGroupBean();
            pg.setGroupName("TESTPRODUCTGROUP");
            pg.setGroupDescription("DESCRIPTION");
            broker.store(pg);

            // Create 2 articles for this productgroup
            for (int j = 1; j <= 2; j++) {
                Article ar = new ArticleBean();
                ar.setArticleName("ARTICLE " + j);
                ar.setProductGroupId(pg.getGroupId());  -------> NOT stored in the database
                broker.store(ar);
            }

Is this a bug ?

Thanks,

Frank Renaers


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message