Hi Rick,

Thanks for your reply.

A simple test case has been created. This test case is to generate exception
of "org.apache.openjpa.
persistence.ArgumentException: "test.openjpa.A.auxdata" defines a target of
"UID" for join column "PUID", but that target does not exist in table
"test.A".", which I think it may be wrong to process meta data according to
attribute name order, especially when there is secondary tables present. At
least primary table should be processed before any secondary table being
processed.

As for the second problem, which secondary table can't be inserted, I think
it might need to flush selective auto-generated foreign keys, before second
row being inserted, so that, auto-generated value will be filled.

This is my first time to create a junit test case. Sorry for the big
package.

Regards,
Dapeng


On Wed, May 18, 2011 at 9:41 PM, Rick Curtis [via OpenJPA] <
[email protected]> wrote:

> Will you please create a small, repeatable unit test so someone can
> investigate this issue?
>
> Thanks,
> Rick
>
> *Rick Curtis*
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://openjpa.208410.n2.nabble.com/CacadeType-Persist-problem-tp6367387p6377856.html
>  To unsubscribe from CacadeType.Persist problem, click 
> here<http://openjpa.208410.n2.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=6367387&code=bGluZGFwZW5nQGdtYWlsLmNvbXw2MzY3Mzg3fC0xNjA1MTAxMjY1>.
>
>



-- 

Regards,
Dapeng


--
View this message in context: 
http://openjpa.208410.n2.nabble.com/CacadeType-Persist-problem-tp6367387p6380521.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Reply via email to