db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TORQUE-248) Filler methods fail for nulled composite foreign keys
Date Sun, 25 Nov 2012 20:28:58 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-248?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Thomas Fox resolved TORQUE-248.
-------------------------------

    Resolution: Fixed
    
> Filler methods fail for nulled composite foreign keys 
> ------------------------------------------------------
>
>                 Key: TORQUE-248
>                 URL: https://issues.apache.org/jira/browse/TORQUE-248
>             Project: Torque
>          Issue Type: Bug
>          Components: Templates
>    Affects Versions: 4.0-beta1
>            Reporter: Thomas Fox
>            Assignee: Thomas Fox
>             Fix For: 4.0-beta2
>
>
> Situation: A composite foreign key is nullable, i.e all colums of which the foreign key
consists can be set to null.
> All columns set no null means that the object does not reference a foreign object.
> Observed behavior: The filler method in the peer of the referencing object fails with
an exception, e.g:
> org.apache.torque.NoRowsException: No result found for key N:S: in table COMP_INTEGER_VARCHAR_PK
> 	at org.apache.torque.test.peer.base.BaseCompIntegerVarcharFkPeerImpl.fillCompIntegerVarcharPks(BaseCompIntegerVarcharFkPeerImpl.java:1009)
> 	at org.apache.torque.test.peer.base.BaseCompIntegerVarcharFkPeerImpl.fillCompIntegerVarcharPks(BaseCompIntegerVarcharFkPeerImpl.java:898)
> 	at org.apache.torque.test.peer.base.BaseCompIntegerVarcharFkPeerImpl.fillCompIntegerVarcharPks(BaseCompIntegerVarcharFkPeerImpl.java:867)
> 	at org.apache.torque.test.peer.base.BaseCompIntegerVarcharFkPeer.fillCompIntegerVarcharPks(BaseCompIntegerVarcharFkPeer.java:1126)
> 	at org.apache.torque.generated.peer.FillerTest.testFillReferencedCompositeKey(FillerTest.java:404)
> ...
> Expected behavior: The filler method should check for "all keys null" and do not try
to create a link in this case.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

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


Mime
View raw message