Use @ExcludeDefaultMappings to specify that no default mapping should be added to a specific class. Instead, EclipseLink will use only mappings that are explicitly defined by annotations or the XML mapping file.
There are no elements for this annotation.
You can specify @ExcludeDefaultMappings on an Entity, MappedSuperclass, or Embeddable class.
Example 2-40 shows how to use the @ExcludeDefaultMapping annotation.
Example 2-40 Using the @ExcludeDefaultMappings Annotation
@ExcludeDefaultMappings
@Entity
public class Dealer {
@Id
private long id;
@Basic
private String name;
// These would be ignored
private List<Card> deck;
private List<Card> hand;
...
}
For more information, see:
"Building Blocks for a Oracle TopLink Project" in Understanding Oracle TopLink