Sun Java System Application Server Platform Edition 8.1 2005Q2 Update 2 Troubleshooting Guide

Solution

If an application creates an entity bean with a duplicate primary key, check to see if the primary key exists by calling findByPrimaryKey before calling create.