Skip to main content

2 posts tagged with "blob"

View All Tags

Add a Contract and Cover Image to a TeaQL Asset

· 4 min read
TeaQL Team
Core Team

A supplier asset needs a PDF contract and a PNG cover. The user uploads both, saves the asset, and later opens either file. When the contract changes, replacing it should leave the cover alone. When the cover is removed, the contract should still download.

That is the example behind our new Blob attachment guide. It uses the Java source preview of the optional Blob module. You can download and run the complete example against PostgreSQL and local File storage, then follow its upload, save, read, replace, and clear operations in order.

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.