Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

## org.hibernate.search.annotations
Annotation Type ContainedIn

    @Retention(value=RUNTIME)
    @Target(value={FIELD,METHOD})
    @Documented
    public @interface ContainedIn

Describe the owning entity as being part of the target entity's index (to be more accurate, being part of the indexed object graph).

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 lines;
}
`

Author:
  Emmanuel Bernard
See Also:
  `Indexed`, `IndexedEmbedded`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT

Copyright © 2006-2010 Hibernate. All Rights Reserved.