Package com.embabel.agent.core
Annotation With
-
- All Implemented Interfaces:
@Target(allowedTargets = {}) public @interface With
A key-value pair for semantic metadata. Used within @Semantics to define semantic properties of a field.
Kotlin example:
@Semantics([ With("predicate", "works at"), With("inverse", "employs") ]) val worksAt: CompanyJava example (on class field):
@Semantics({ @With(key = "predicate", value = "works at"), @With(key = "inverse", value = "employs") }) private Company worksAt;Java example (on interface getter):
public interface Employee { @Semantics({ @With(key = "predicate", value = "works at"), @With(key = "inverse", value = "employs") }) Company getWorksAt(); }