EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference

javax.persistence
Annotation Type CollectionTable


@Target(value={METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface CollectionTable

The CollectionTable annotation is used in the mapping of collections of basic or embeddable types. The CollectionTable annotation specifies the table that is used for the mapping of the collection and is specified on the collection-valued field or property.

Since:
Java Persistence 2.0

Optional Element Summary
 java.lang.String catalog
           
 JoinColumn[] joinColumns
           
 java.lang.String name
           
 java.lang.String schema
           
 UniqueConstraint[] uniqueConstraints
           
 

name

public abstract java.lang.String name
Default:
""

catalog

public abstract java.lang.String catalog
Default:
""

schema

public abstract java.lang.String schema
Default:
""

joinColumns

public abstract JoinColumn[] joinColumns
Default:
{}

uniqueConstraints

public abstract UniqueConstraint[] uniqueConstraints
Default:
{}

EclipseLink 2.0.0_ 2.0.0.v20090626-r4569 API Reference