@TargetSE(valueSE={METHODSE,FIELDSE}) @RetentionSE(valueSE=RUNTIMESE) public @interface ElementCollection
Example:
@Entity public class Person {
@Id protected String ssn;
protected String name;
...
@ElementCollection
protected Set<String> nickNames = new HashSet();
...
}
| 修飾子と型 | オプションの要素と説明 |
|---|---|
FetchType | fetch(オプション)コレクションを遅延ロードするか、先行してフェッチする必要があるか。 |
ClassSE | targetClass(オプション)コレクションの要素型である基本クラスまたは埋め込み可能クラス。 |
public abstract ClassSE targetClass
public abstract FetchType fetch
Copyright © 2019 Eclipse Foundation.
Use is subject to license terms.