Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle TopLink
11g Release 1 (11.1.1)

E28847-01


org.eclipse.persistence.annotations
Annotation Type CompositeMember


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

A CompositeMember annotation is ignored unless is in composite member persistence unit. It may be used in conjunction with a ElementCollection and CollectionTable annotations. It should be used if target type is a primitive type and CollectionTable designates the table that belongs to composite member persistence unit other than the source composite member persistence unit. That allows the source and target to be mapped to different databases.

Since:
Eclipselink 2.3
Author:
Andrei Ilitchev
See Also:
ElementCollection, CollectionTable, A CompositeMember can be specified on within an Entity, MappedSuperclass and Embeddable class.

Required Element Summary
 java.lang.String value
          The name of a target composite member persistence unit to which element table belongs (if differs from source composite member persistence unit)

 

Element Detail

value

public abstract java.lang.String value
The name of a target composite member persistence unit to which element table belongs (if differs from source composite member persistence unit)

Skip navigation links

Copyright © 1998, 2012, Oracle. All Rights Reserved.