Annotation Interface KokosEntity


@Target(TYPE) @Retention(RUNTIME) public @interface KokosEntity
Marks a class as a Kokos entity and binds it to a Smeup object type+parameter pair.

Type and parameter

In the Smeup object model every object is identified by a 2-character type and an optional parameter of arbitrary length. Their concatenation forms the so-called class key (e.g. type "CN" + parameter "COL""CNCOL").

Role in the SDK

This annotation is the binding contract between a Java class and its Smeup identity. It is used for instance by

invalid reference
com.smeup.kokos.sdk.entity.service.KS_202_01E
(and any other component that receives a type+parameter pair from a FUN) to resolve the correct registered entity class from the global EntityManager — regardless of how the Java class is named.

Usage


 // type="CN", parameter="COL" → class key "CNCOL" (contact collaborator)
 @KokosEntity(type = "CN", parameter = "COL")
 public class CustomerCollaborator extends AbstractEntity { ... }

 
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    Mandatory 2-character Smeup object type (e.g.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Optional Smeup object parameter (e.g.
  • Element Details

    • type

      String type
      Mandatory 2-character Smeup object type (e.g. "CN", "AR").
    • parameter

      String parameter
      Optional Smeup object parameter (e.g. "COL"). Defaults to empty string.
      Default:
      ""