package org.springframework.roo.addon.jpa.annotations.entity; /** * = _JpaRelationType_ * * Relation type of a Roo JPA managed relation * * @author Jose Manuel Vivó * @since 2.0.0 * @see RooJpaRelation#type() */ public enum JpaRelationType { AGGREGATION, COMPOSITION; public static JpaRelationType getJpaRelationType(final String typeName) { try { return JpaRelationType.valueOf(typeName); } catch (final IllegalArgumentException e) { return null; } } }