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

com.avaje.ebean.annotation.DocEmbedded Maven / Gradle / Ivy

There is a newer version: 8.1.1
Show newest version
package com.avaje.ebean.annotation;

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

/**
 * Specify the property is included in the parent document store index.
 *
 * 
{@code
 *
 *
 * @DocStore
 * @Entity @Table(name = "o_order")
 * public class Order {
 *
 *   ...
 *   // include some customer details including
 *   // nested billingAddress
 *   @DocEmbedded(doc = "id,status,name,billingAddress(*,country(*)")
 *   @ManyToOne
 *   Customer customer;
 *
 *
 * }
*/ @Target({ ElementType.FIELD }) @Retention(RetentionPolicy.RUNTIME) public @interface DocEmbedded { /** * The properties on the embedded bean to include in the index. */ String doc() default ""; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy