001/* 002 * Copyright (c) 2008, 2009, 2011 Oracle, Inc. All rights reserved. 003 * 004 * This program and the accompanying materials are made available under the 005 * terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0 006 * which accompanies this distribution. The Eclipse Public License is available 007 * at http://www.eclipse.org/legal/epl-v10.html and the Eclipse Distribution License 008 * is available at http://www.eclipse.org/org/documents/edl-v10.php. 009 */ 010package javax.persistence; 011 012/** 013 * Defines inheritance strategy options. 014 * 015 * @since Java Persistence 1.0 016 */ 017public enum InheritanceType { 018 019 /** 020 * A single table per class hierarchy. 021 */ 022 SINGLE_TABLE, 023 024 /** 025 * A table per concrete entity class. 026 */ 027 TABLE_PER_CLASS, 028 029 /** 030 * A strategy in which fields that are specific to a 031 * subclass are mapped to a separate table than the fields 032 * that are common to the parent class, and a join is 033 * performed to instantiate the subclass. 034 */ 035 JOINED 036}