package org.etk.orm.api.annotations; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; import org.etk.orm.api.RelationshipType; /** * Defines the many side in a one to many relationship. * * @author <a href="mailto:julien.viet@exoplatform.com">Julien Viet</a> * @version $Revision$ * @see org.chromattic.api.RelationshipType * @see org.chromattic.api.annotations.OneToMany */ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface ManyToOne { /** * The type of relationship. * * @return the relationship type */ RelationshipType type() default RelationshipType.HIERARCHIC; }