@Retention(value=RUNTIME) @Target(value={FIELD,METHOD}) @Documented public @interface ContainedIn
Only necessary when an @Indexed class is used as a @IndexedEmbedded target class. @ContainedIn must mark the property pointing back to the @IndexedEmbedded owning Entity.
Not necessary if the class is an @Embeddable class.
@Indexed
public class OrderLine {
@IndexedEmbedded
private Order order;
}
@Indexed
public class Order {
@ContainedIn
Set
}
Indexed
,
IndexedEmbedded
Copyright © 2006-2014 Red Hat, Inc. All Rights Reserved