Bugs item #642615, was opened at 2002-11-22 16:43
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=642615&group_id=22866

Category: JBossCMP
Group: v3.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Jeremy Boynes (jboynes)
Assigned to: Nobody/Anonymous (nobody)
Summary: Inconsistent key generation with unknown

Initial Comment:
When using the key-generator with unknown-pk, a
different value is inserted into the database than is
returned in the EntityContext. This results in errors
when using the returned EJBObject.

In JDBCKeyGeneratorCreateCommand, two calls are made to
  keyGenerator.generateKey(). The first (line 140) is
used to generate the pk used for the DuplicateKey check
and this is returned from the command. A second call
(line 157) is made when initializing the CMP field
associated with the unknown-pk and this (different)
value is inserted into the db.

The value returned from the first call should also be
set into the CMP field.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=376685&aid=642615&group_id=22866


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to