Spec-Zone .ru
спецификации, руководства, описания, API


javax.persistence
Наследование Типа аннотации


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

Определяет стратегию наследования, которая будет использоваться для объекта иерархия class. Это определяется на объекте class, который является корнем объекта иерархия class. Если Inheritance аннотация не определяется или если никакой тип наследования не определяется для объекта иерархия class, SINGLE_TABLE mapping strategy is used.


   Example:

   @Entity
   @Inheritance(strategy=JOINED)
   public class Customer { ... }

   @Entity
   public class ValuedCustomer extends Customer { ... }
 

Since:
Java Persistence 1.0

Optional Element Summary
 InheritanceType стратегия
          The strategy to be used for the entity inheritance hierarchy.
 

strategy

public abstract InheritanceType strategy
The strategy to be used for the entity inheritance hierarchy.

Default:
javax.persistence.InheritanceType.SINGLE_TABLE


Представьте ошибку или функцию

Copyright © 2009-2011, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.

Generated on 10-February-2011 12:41

free hit counter