public class OneToMany extends Object implements Value
| Constructor and Description | 
|---|
OneToMany(Mappings mappings,
         PersistentClass owner)  | 
| Modifier and Type | Method and Description | 
|---|---|
Object | 
accept(ValueVisitor visitor)  | 
void | 
createForeignKey()  | 
PersistentClass | 
getAssociatedClass()  | 
boolean[] | 
getColumnInsertability()  | 
Iterator<Selectable> | 
getColumnIterator()  | 
int | 
getColumnSpan()  | 
boolean[] | 
getColumnUpdateability()  | 
FetchMode | 
getFetchMode()  | 
String | 
getReferencedEntityName()  | 
Table | 
getTable()
Table of the owner entity (the "one" side) 
 | 
Type | 
getType()  | 
boolean | 
hasFormula()  | 
boolean | 
isAlternateUniqueKey()  | 
boolean | 
isEmbedded()
Deprecated. 
 
To be removed in 5.  Removed as part of removing the notion of DOM entity-mode.
 See Jira issue: HHH-7771 
 | 
boolean | 
isIgnoreNotFound()  | 
boolean | 
isNullable()  | 
boolean | 
isSimpleValue()  | 
boolean | 
isValid(Mapping mapping)  | 
void | 
setAssociatedClass(PersistentClass associatedClass)
Associated entity on the many side 
 | 
void | 
setEmbedded(boolean embedded)
Deprecated. 
 
To be removed in 5.  Removed as part of removing the notion of DOM entity-mode.
 See Jira issue: HHH-7771 
 | 
void | 
setIgnoreNotFound(boolean ignoreNotFound)  | 
void | 
setReferencedEntityName(String referencedEntityName)
Associated entity on the "many" side 
 | 
void | 
setTypeUsingReflection(String className,
                      String propertyName)  | 
public OneToMany(Mappings mappings, PersistentClass owner) throws MappingException
MappingExceptionpublic PersistentClass getAssociatedClass()
public void setAssociatedClass(PersistentClass associatedClass)
public void createForeignKey()
createForeignKey in interface Valuepublic Iterator<Selectable> getColumnIterator()
getColumnIterator in interface Valuepublic int getColumnSpan()
getColumnSpan in interface Valuepublic FetchMode getFetchMode()
getFetchMode in interface Valuepublic Table getTable()
public boolean isNullable()
isNullable in interface Valuepublic boolean isSimpleValue()
isSimpleValue in interface Valuepublic boolean isAlternateUniqueKey()
isAlternateUniqueKey in interface Valuepublic boolean hasFormula()
hasFormula in interface Valuepublic boolean isValid(Mapping mapping) throws MappingException
isValid in interface ValueMappingExceptionpublic String getReferencedEntityName()
public void setReferencedEntityName(String referencedEntityName)
public void setTypeUsingReflection(String className, String propertyName)
setTypeUsingReflection in interface Valuepublic Object accept(ValueVisitor visitor)
public boolean[] getColumnInsertability()
getColumnInsertability in interface Valuepublic boolean[] getColumnUpdateability()
getColumnUpdateability in interface Value@Deprecated public boolean isEmbedded()
@Deprecated public void setEmbedded(boolean embedded)
public boolean isIgnoreNotFound()
public void setIgnoreNotFound(boolean ignoreNotFound)
Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.