[ 784322 ] INSERT after ejbPostCreate
http://sourceforge.net/tracker/?func=detail&aid=784322&group_id=22866&atid=381174
By the spec (and current implementation), the primary key should be set in ejbCreate and available in ejbPostCreate. Which is impossible in the case there was no INSERT after ejbCreate.
The entity key generation commands that work with insert-after-ejb-post-create are pk-sql and key-generator.
Hanson, Matthew wrote:
Hi,
Per your request, I have tested a bean with auto-increment primary key fields and without foreign-key mappings.
I created a mini-project for Jboss 3.2.2 comprised of only a single bean class that should have Hypersonic auto-increment and create a primary key for the bean. The bean has no relationships at all and does have the auto-increment tag. Additionally, just for thoroughness, all of the <insert-after-ejb-post-create> tags in standardjboss.xml are set to true. The null primary key exception was thrown again.
------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user