Module com.s8.api

Annotation Interface S8RowType


@Retention(RUNTIME) @Target(TYPE) public @interface S8RowType
The Type of row. Storage is fixed forever. For evolving the model, create new record (for instance let's say you have an object MyStorage {
 @S8Record(name = "storage-#0001")
 public class MyStorage {
        public @S8Val String code;
        public @S8Val int quantity;
 }
 
and you want to evolve to:
 @S8Record(name = "storage-#0002")
 public class MyStorage_0002 {
        public @S8Val String code;
        public @S8Val int quantity;
        public @S8Val float size;
 }
 

Then, in this case use lambda MyStorage -> MyStorage_0002 to entirely build new objects that will replace the previous ones

Since storage format is not supposed to evolve, then we don't need to attach fix

Author:
Pierre Convert Copyright (C) 2025, Pierre Convert. All rights reserved.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Gove the name of the type of this Row object
  • Element Details

    • name

      String name
      Gove the name of the type of this Row object
      Returns:
      the typename