|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
javax.persistence Annotation Type Inheritance
Implements:
Annotation
@Target(value=TYPE)@Retention(value=RUNTIME)
定义要对实体类分层结构使用的继承战略。它是对实体类分层结构的根实体类指定的。
示例: @Entity @Inheritance(strategy=JOINED) public class Customer { ... } @Entity public class ValuedCustomer extends Customer { ... }
since |
|
Defines the inheritance strategy to be used for an entity class hierarchy. It is specified on the entity class that is the root of the entity class hierarchy.
Example: @Entity @Inheritance(strategy=JOINED) public class Customer { ... } @Entity public class ValuedCustomer extends Customer { ... }
- Since:
- Java Persistence 1.0
Optional Element Summary | |
---|---|
InheritanceType |
strategy
The strategy to be used |
abstract public InheritanceType
strategy()
要使用的战略
英文文档:
strategy
public abstract InheritanceType strategy
- The strategy to be used
- Default:
- SINGLE_TABLE
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!