javax.persistence
Annotation Type AssociationOverride


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

This annotation is used to override a many-to-one or one-to-one mapping of property or field for an entity relationship. The AssociationOverride annotation may be applied to an entity that extends a mapped superclass to override a many-to-one or one-to-one mapping defined by the mapped superclass. If the AssociationOverride annotation is not specified, the join column is mapped the same as in the original mapping.

Author:
Emmanuel Bernard

Required Element Summary
 String name
           
 
Optional Element Summary
 JoinColumn[] joinColumns
           
 JoinTable joinTable
           
 

Element Detail

name

public abstract String name

joinColumns

public abstract JoinColumn[] joinColumns
Default:
{}

joinTable

public abstract JoinTable joinTable
Default:
@javax.persistence.JoinTable


Copyright © 2007-2009 Hibernate.org. All Rights Reserved.