Interface UpdateSpecification<T>

Type Parameters:
T - The entity type which is the target of the mutation.
All Superinterfaces:
MutationSpecification<T>, QuerySpecification<T>

@Incubating public interface UpdateSpecification<T> extends MutationSpecification<T>
Specialization of MutationSpecification for programmatic customization of update queries.

The method assign(Assignment) allows application of additional assignments to the mutated entity. The static factory methods of Assignment are used to express assignments to attributes or compound paths.

 UpdateSpecification.create(Book.class)
         .assign(Assignment.set(Book_.title, newTitle))
         .restrict(Restriction.equal(Book_.isbn, isbn))
         .createQuery(session)
         .executeUpdate();
 
Since:
7.2