Annotation Type ContainedIn

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.

public class OrderLine {
private Order order;

public class Order {
Set lines;

Emmanuel Bernard
See Also:
Indexed, IndexedEmbedded

Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved