001package io.ebean.annotation;
002
003import java.lang.annotation.ElementType;
004import java.lang.annotation.Retention;
005import java.lang.annotation.RetentionPolicy;
006import java.lang.annotation.Target;
007
008/**
009 * Specify the entity type maps to a document store (like ElasticSearch).
010 */
011@Target({ElementType.TYPE})
012@Retention(RetentionPolicy.RUNTIME)
013public @interface DocMapping {
014
015  /**
016   * The property name the mapping applies to.
017   */
018  String name();
019
020  /**
021   * Mapping options.
022   */
023  DocProperty options();
024}