Annotation Type IdCompanion

  • @Retention(CLASS)
    public @interface IdCompanion
    Marks a property as a companion to an @Id property. There can only be one companion property.

    By defining an @Id companion property, the entity type uses a special ID encoding scheme involving this property in addition to the ID.

    For Time Series IDs, a companion property of type Date or DateNano represents the exact timestamp.