Skip to content

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

Closed
@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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions