geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gianny Damour (JIRA)" <j...@apache.org>
Subject [jira] Closed: (GERONIMO-1374) Open EJB does not allow the setting of a ForiegnKey that is involved in a CMR relationship
Date Sat, 08 Nov 2008 06:14:44 GMT

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

Gianny Damour closed GERONIMO-1374.
-----------------------------------

    Resolution: Won't Fix

Superseded

> Open EJB does not allow the setting of a ForiegnKey that is involved in a CMR relationship
> ------------------------------------------------------------------------------------------
>
>                 Key: GERONIMO-1374
>                 URL: https://issues.apache.org/jira/browse/GERONIMO-1374
>             Project: Geronimo
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: OpenEJB
>    Affects Versions: 1.0-M5
>         Environment: JDK 1.4.2_09 WindowsXP
>            Reporter: Manu T George
>            Assignee: Gianny Damour
>             Fix For: 1.x
>
>         Attachments: CMPContainerBuilder.patch, CMPContainerBuilder.patch, CMRCompoundAccessor.java,
CMRMultiplePKAsFKAccessor.java, CompoundPKTransform.patch
>
>
> I have two CMPs with a 1:n relationship.
> CMP1 -  Order - PK = OrderPK which has a single field orderId
> CMP2  - OrderItem = OrderItemPk which has 2 fields InventoryId and order_orderId
> OrderId and order_orderId are mapped
> When i do a setOrder_orderId in the ejbCreate of OrderItem geronimo gives an error during
runtime saying cannot set read only field.
> When i don't set it geronimo says partial null key . In this case I set the cmr field
in the ejbPostCreate method
>  org.tranql.identity.UndefinedIdentityException: Partial null key
>     at org.tranql.identity.DerivedIdentity.defineIdentity(DerivedIdentity.java:80)
>     at org.openejb.entity.cmp.CMPCreateMethod.execute(CMPCreateMethod.java:175)
>     at org.openejb.dispatch.DispatchInterceptor.invoke(DispatchInterceptor.java:72)
>     at org.apache.geronimo.naming.java.ComponentContextInterceptor.invoke(ComponentContextInterceptor.java:56)
>     at org.openejb.ConnectionTrackingInterceptor.invoke(ConnectionTrackingInterceptor.java:81)
>     at org.openejb.entity.EntityInstanceInterceptor.invoke(EntityInstanceInterceptor.java:136)
>     at org.openejb.entity.cmp.InTxCacheInterceptor.invoke(InTxCacheInterceptor.java:90)
>     at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(ContainerPolicy.java:119)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message