Package io.micronaut.data.annotation
Package containing main user facing annotation API for Micronaut Data.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Enum Summary Enum Description GeneratedValue.Type The type of generation.Join.Type The type of join.Relation.Cascade Cascade type handling for different associations.Relation.Kind The relation kind. -
Annotation Types Summary Annotation Type Description AutoPopulated Meta annotation to identity annotations that are auto-populated by the Micronaut Data.DataTransformer Generic version of allowing transformations to be applied when reading or writing data to and from the a database.DateCreated Can be applied to date type to indicate the property should be populated when it is first inserted.DateUpdated Can be applied to date type to indicate the property should be populated when it was last updated.Embeddable Annotation to be used on POJOs that are embeddable inMappedEntity
types.EmbeddedId Annotation that specifies the embedded ID.Expandable Marks parameter as expandable, which means that the query will be altered during runtime to accommodate additional values.GeneratedValue Designates a property as a generated value.Id Designates a field or method that is annotated with the Id of an entity.IgnoreWhere TheIgnoreWhere
annotation prevents the generation of additional criteria for this query.Index Designates one of the indexes part of the indexes member within an Table annotation.Indexes A @Join defines how a join for a particular association path should be generated.Join A @Join defines how a join for a particular association path should be generated.MappedEntity Designates a class as being persisted.MappedProperty Designates a method or field that is mapped as a persistent property.NamingStrategy Override default naming strategy.Query Defines the query string such as SQL, JPA-QL, Cypher etc that should be executed.QueryHint Provides a query hint to the underlying query implementation.Relation Annotation used to indicate a field or method is a relation to another type.Repository Designates a type of a data repository.RepositoryConfiguration Models compilation time configuration for the repository.Transient Annotation used to indicate a field or method is transient and not persisted.TypeDef Type definitions allow associating existing types with a specificDataType
.TypeRole A type role indicates a method element in a repository that plays a role in query execution and should not be factored into query calculation but instead made available at runtime using the specified role name.Version Designates a field or method that is used to version an entity.Where ThereWhere
annotation allows augmenting theWHERE
statement of generated queries with additional criterion.