|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
javax.persistence Annotation Type Temporal
Implements:
Annotation
@Target(value={METHOD, FIELD})@Retention(value=RUNTIME)
必须对
java.util.Date
和 java.util.Calendar
类型的持久字段或属性指定此注释。只能对这些类型的字段或属性指定此注释。
Temporal
注释可以与 Basic
注释一起使用。
示例: @Temporal(DATE) protected java.util.Date endDate;
since |
|
This annotation must be specified for persistent fields
or properties of type Date
and Calendar
. It may only be specified for fields
or properties of these types.
The Temporal
annotation may be used in
conjunction with the Basic
annotation.
Example: @Temporal(DATE) protected java.util.Date endDate;
- Since:
- Java Persistence 1.0
Required Element Summary | |
---|---|
TemporalType |
value
The type used in mapping java.util.Date or java.util.Calendar. |
Element Detail |
---|
abstract public TemporalType
value()
在映射 java.util.Date 或 java.util.Calendar 时使用的类型。
英文文档:
value
public abstract TemporalType value
- The type used in mapping java.util.Date or java.util.Calendar.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!