@Save methods with @GeneratedValue ids

Description

If an entity has a generated id, and the instance passed to a @Save method has no id assigned, we should call insert() instead of upsert(), since users are going to expect this, even if I don’t personally love it.

To simplify the generated code, I will also add StatelessSession.getIdentifier().

Activity

Show:

Gavin King June 2, 2024 at 11:55 AM

Done.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Priority

Created June 2, 2024 at 10:48 AM
Updated June 14, 2024 at 3:08 PM
Resolved June 2, 2024 at 11:55 AM