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 * Type used to indicate a specific mapping of <code>java.util.Date</code> 014 * or <code>java.util.Calendar</code>. 015 * 016 * @since Java Persistence 1.0 017 */ 018public enum TemporalType { 019 /** 020 * Map as <code>java.sql.Date</code> 021 */ 022 DATE, 023 024 /** 025 * Map as <code>java.sql.Time</code> 026 */ 027 TIME, 028 029 /** 030 * Map as <code>java.sql.Timestamp</code> 031 */ 032 TIMESTAMP 033}