All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jeromeloisel.db.entity.Document Maven / Gradle / Ivy

There is a newer version: 5.6.3
Show newest version
package com.jeromeloisel.db.entity;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines the index name and the type in which the document is stored.
 * 
 * @author jerome
 *
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target({ ElementType.TYPE })
public @interface Document {

  /**
   * ElasticSearch index name.
   * 
   * @return
   */
  String indexName();
  
  /**
   * Elasticsearch type associated to the annotated bean.
   * 
   * @return
   */
  String type();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy