Skip to main content

2 posts tagged with "optimistic-locking"

View All Tags

Let a Customer Edit an Order Without Losing the Save Boundary

· 4 min read
TeaQL Team
Core Team

A customer opens an order with two lines. They change the Blue cup quantity from 2 to 5 and click Save. The connection drops before the response arrives.

Should the client save again? What if another user edited the order while the page was open? What if the customer removes a line from the submitted JSON?

Our protected order-editing guide walks through these cases using a downloadable Java/SQLite example. It starts with the open and submit operations, then shows what the application must do behind them. The example uses the source preview of the optional SecureDocumentReferenceModule.

Blob Objects and Optimistic Locking Improvements

· One min read
TeaQL Team
Core Team

Blob object type and optimistic locking mechanism improvements.

BlobObject Type​

Store large binary data (images, documents, files):

@Entity
public class Document {
private String name;
private BlobObject content; // stores file data
}
+ BlobObject: binary data storage type
+ Integrated with SQLRepository for persistence
+ Streaming support for large files

Actual Change Detection​

Version number is only incremented when properties have actually changed, avoiding meaningless version bumps.

Multi-Entity Version Conflict Fix​

When updating multiple entities in the same transaction, each entity's version is tracked independently.