com.beeproduced.bee.fetched.annotations.BeeFetched.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bee.fetched Show documentation
Show all versions of bee.fetched Show documentation
Automatically generate nested data fetchers for usage with data loaders.
package com.beeproduced.bee.fetched.annotations
import kotlin.reflect.KClass
/**
*
*
* @author Kacper Urbaniec
* @version 2023-08-07
*/
@Target(AnnotationTarget.CLASS)
annotation class BeeFetched(
val mappings: Array = [],
val internalTypes: Array = [],
val ignore: Array = [],
val safeMode: Boolean = true,
val safeModeOverrides: Array = []
)
annotation class FetcherMapping(
val target: KClass<*>,
val property: String,
val idProperty: String
)
annotation class FetcherIgnore(
val target: KClass<*>,
val property: String = "",
)
annotation class FetcherInternalType(
val target: KClass<*>,
val internal: KClass<*>,
val property: String = ""
)
annotation class FetcherSafeModeOverride(
val target: KClass<*>,
val property: String,
val safeMode: Boolean,
)