geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matt Hogstrom (JIRA)" <>
Subject [jira] Updated: (GERONIMO-1374) Open EJB does not allow the setting of a ForiegnKey that is involved in a CMR relationship
Date Mon, 30 Jan 2006 17:18:33 GMT
     [ ]

Matt Hogstrom updated GERONIMO-1374:

    Fix Version: 1.x
                     (was: 1.0.1)

I would like to see this in 1.0.1 but it looks like it might be disruptive.  I'll defer to
Gianny for his opinion but moving to 1.x until someone wants to step up and get this one integrated
and tested.

> Open EJB does not allow the setting of a ForiegnKey that is involved in a CMR relationship
> ------------------------------------------------------------------------------------------
>          Key: GERONIMO-1374
>          URL:
>      Project: Geronimo
>         Type: Bug
>   Components: OpenEJB
>     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,,, 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(
>     at org.openejb.entity.cmp.CMPCreateMethod.execute(
>     at org.openejb.dispatch.DispatchInterceptor.invoke(
>     at
>     at org.openejb.ConnectionTrackingInterceptor.invoke(
>     at org.openejb.entity.EntityInstanceInterceptor.invoke(
>     at org.openejb.entity.cmp.InTxCacheInterceptor.invoke(
>     at org.openejb.transaction.ContainerPolicy$TxRequired.invoke(

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message