Subversion Repositories WebE

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
33 PointedEar 1
//$Id: MappedSuperclass.java 11282 2007-03-14 22:05:59Z epbernard $
2
//EJB3 Specification Copyright 2004-2006 Sun Microsystems, Inc.
3
package javax.persistence;
4
 
5
import java.lang.annotation.Retention;
6
import java.lang.annotation.Target;
7
 
8
import static java.lang.annotation.ElementType.*;
9
import static java.lang.annotation.RetentionPolicy.*;
10
 
11
/**
12
 * Designates a class whose mapping information is applied to the entities that inherit
13
 * from it. A mapped superclass has no separate table defined for it.
14
 *
15
 * A class designated with the MappedSuperclass annotation can be mapped in the same way as
16
 * an entity except that the mappings will apply only to its subclasses since no table exists
17
 * for the mapped superclass itself. When applied to the subclasses the inherited mappings will
18
 * apply in the context of the subclass tables. Mapping information may be overridden in such
19
 * subclasses by using the AttributeOverride and AssociationOverride annotations or corresponding *
20
 * XML elements.
21
 *  
22
 * @author Emmanuel Bernard
23
 */
24
@Target(TYPE) @Retention(RUNTIME)
25
public @interface MappedSuperclass {}