I'm working on it right now, so is should be fixed tonight (unless it is a huge architectural error).
Let me know if I can be of any assistance. You best bet for contacting me now is via email or by updating the bug, as I am off on other issues and not monitoring the forums actively.
- Mac
Should be fixed now.
Sure. It works for me now. Thank you for quick response and bugfix :-)
Marius
Yes! Bravo!
I just tested this version because I had the same problem and for me it solved only halve of the problem.
I had changed to the code in JDBCAbstractCMPFieldBridge
in the method setPrimaryKeyValue. If there was only one bean it worked fine but if there are several beans the wrong primary key is generated.
So I commented out the following line:
//primaryKey = manager.getEntityBridge().createPrimaryKeyInstance();
and added this line
primaryKey = metadata.getPrimaryKeyField().getDeclaringClass().newInstance();
This is probably not the "official solution" but it works for me. I suggest that somebody comfortable with the Jboss code finds a permanent solution.