Skip to content

Add markAsDirty() method - supports incrementing/updating the @Version property on otherwise unmodified bean #155

@rbygrave

Description

@rbygrave
Customer bean = Ebean.find(Customer.class, id);
...
// ensure the update occurs and version property is updated/incremented
Ebean.markAsDirty(bean);
Ebean.save(bean);

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions