In EJB 3.0 i do not understand the difference between the create() method vs the persist(). When should we use the create() and when should the persist() method be used ?
persist() method relies on the key entity attribute in order to create or update an existing "record". No duplicate key exception is thrown at object level (before commiting to DB).
create() method always tries to append a new "record" and throws an exception when that key already exists.