站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > Java Platform, Enterprise Edition v5.0 API Specifications

Inheritance (Java EE 5 SDK) - Java Platform, Enterprise Edition v5.0 API Specifications

Java EE 5 SDK

javax.persistence
Annotation Type Inheritance


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface Inheritance

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
 

strategy

public abstract InheritanceType strategy
The strategy to be used

Default:
SINGLE_TABLE

Java EE 5 SDK

Submit a bug or feature

Copyright 2006 Sun Microsystems, Inc. All rights reserved.