|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
javax.persistence Annotation Type EmbeddedId
Implements:
Annotation
@Target(value={METHOD, FIELD})@Retention(value=RUNTIME)
此类应用于实体类或映射的超类的持久字段或属性,以说明复合主键为可嵌入的类。可嵌入的类必须注释为
Embeddable
。
示例: @EmbeddedId protected EmployeePK empPK;
since |
|
Is applied to a persistent field or property of an entity
class or mapped superclass to denote a composite primary
key that is an embeddable class. The embeddable class
must be annotated as Embeddable
.
Example: @EmbeddedId protected EmployeePK empPK;
- Since:
- Java Persistence 1.0
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!