You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ojb-dev@db.apache.org by Matthew Baird <Ma...@motiva.com> on 2002/12/20 03:16:09 UTC

State of the Union

with PersistentFieldDefaultImpl

junit-no-compile-no-prepare:
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 163, Failures: 1, Errors: 0, Time elapsed: 9.281 sec
    [junit] TEST org.apache.ojb.broker.AllTests FAILED
    [junit] Running org.apache.ojb.odmg.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 144, Failures: 0, Errors: 2, Time elapsed: 13.156 sec
    [junit] TEST org.apache.ojb.odmg.AllTests FAILED
    [junit] Running org.apache.ojb.soda.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 4.437 sec
    [junit] TEST org.apache.ojb.soda.AllTests FAILED

with PersistentFieldPropertyImpl

junit-no-compile-no-prepare:
    [junit] Running org.apache.ojb.broker.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 163, Failures: 2, Errors: 2, Time elapsed: 9.281 sec
    [junit] TEST org.apache.ojb.broker.AllTests FAILED
    [junit] Running org.apache.ojb.odmg.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 144, Failures: 0, Errors: 5, Time elapsed: 13.156 sec
    [junit] TEST org.apache.ojb.odmg.AllTests FAILED
    [junit] Running org.apache.ojb.soda.AllTests
    [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
    [junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 4.437 sec
    [junit] TEST org.apache.ojb.soda.AllTests FAILED

I'm curious as to why these results are different?

[org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR: SQLException during the execution of the delete (for a org.apache.ojb.broker.BidirectionalAssociationObjectA): Integrity constraint violation: BIDIR_B_FK_1 table: BIDIR_B in statement [DELETE FROM BIDIR_A WHERE pk = 'A1040350973596' ]
Integrity constraint violation: BIDIR_B_FK_1 table: BIDIR_B in statement [DELETE FROM BIDIR_A WHERE pk = 'A1040350973596' ]

seems to be mostly related to the bidirectional association tests.

I'm looking into it, but would appreciate any help

Re: State of the Union

Posted by Thomas Mahler <th...@apache.org>.
Hi Matthew,

I did not look into this special case, but we had similar problems 
before. Most times problems arise because developers forget to write 
testcases that work for all PersistentField implementations.

With PersistentFieldDefaultImpl entity classes are not required to have 
getters and setters for atttributes.
A test-case accessing this attribute with the 
PersistentFieldPropertyImpl will fail!

cheers,
Thomas


Matthew Baird wrote:
> with PersistentFieldDefaultImpl
> 
> junit-no-compile-no-prepare:
>     [junit] Running org.apache.ojb.broker.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 163, Failures: 1, Errors: 0, Time elapsed: 9.281 sec
>     [junit] TEST org.apache.ojb.broker.AllTests FAILED
>     [junit] Running org.apache.ojb.odmg.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 144, Failures: 0, Errors: 2, Time elapsed: 13.156 sec
>     [junit] TEST org.apache.ojb.odmg.AllTests FAILED
>     [junit] Running org.apache.ojb.soda.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 4.437 sec
>     [junit] TEST org.apache.ojb.soda.AllTests FAILED
> 
> with PersistentFieldPropertyImpl
> 
> junit-no-compile-no-prepare:
>     [junit] Running org.apache.ojb.broker.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 163, Failures: 2, Errors: 2, Time elapsed: 9.281 sec
>     [junit] TEST org.apache.ojb.broker.AllTests FAILED
>     [junit] Running org.apache.ojb.odmg.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 144, Failures: 0, Errors: 5, Time elapsed: 13.156 sec
>     [junit] TEST org.apache.ojb.odmg.AllTests FAILED
>     [junit] Running org.apache.ojb.soda.AllTests
>     [junit] [BOOT] INFO: OJB.properties: file:/C:/eclipse/workspace/jakarta-ojb/target/test/ojb/OJB.properties
>     [junit] Tests run: 3, Failures: 3, Errors: 0, Time elapsed: 4.437 sec
>     [junit] TEST org.apache.ojb.soda.AllTests FAILED
> 
> I'm curious as to why these results are different?
> 
> [org.apache.ojb.broker.accesslayer.JdbcAccess] ERROR: SQLException during the execution of the delete (for a org.apache.ojb.broker.BidirectionalAssociationObjectA): Integrity constraint violation: BIDIR_B_FK_1 table: BIDIR_B in statement [DELETE FROM BIDIR_A WHERE pk = 'A1040350973596' ]
> Integrity constraint violation: BIDIR_B_FK_1 table: BIDIR_B in statement [DELETE FROM BIDIR_A WHERE pk = 'A1040350973596' ]
> 
> seems to be mostly related to the bidirectional association tests.
> 
> I'm looking into it, but would appreciate any help
> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
> 
> 
>