DirectQuery annotations

This section gives you an overview on how you can use the Spring annotations defined in Atoti FRTB to simplify the configuration when DirectQuery is used.

How it works

Some Spring annotations have been defined to make the definition of Beans easier. You can use these annotations at the Bean level or at the Class level.

Annotation Description
@OnInMemoryDatabase This annotation is conditional on DirectQuery being disabled, that is, on the in-memory datastore being used. Underlying Spring property condition:
- directquery.enabled=false
@OnDirectQueryDatabase This annotation is conditional on DirectQuery being enabled. Underlying Spring property condition:
- directquery.enabled=true
@OnSnowflake This annotation is conditional on DirectQuery being enabled and configured to use a Snowflake Database. Underlying Spring property condition:
- directquery.enabled=true and directquery.database.type=snowflake
@OnClickhouse This annotation is conditional on DirectQuery being enabled and configured to use a ClickHouse Database. Underlying Spring property condition:
- directquery.enabled=true and directquery.database.type=clickhouse