Methods Summary |
---|
public java.lang.Object | accept(ValueVisitor visitor)
return visitor.accept(this);
|
public void | createForeignKey()
// no foreign key element of for a one-to-many
|
public PersistentClass | getAssociatedClass()
return associatedClass;
|
public boolean[] | getColumnInsertability()
//TODO: we could just return all false...
throw new UnsupportedOperationException();
|
public java.util.Iterator | getColumnIterator()
return associatedClass.getKey().getColumnIterator();
|
public int | getColumnSpan()
return associatedClass.getKey().getColumnSpan();
|
public boolean[] | getColumnUpdateability()
//TODO: we could just return all false...
throw new UnsupportedOperationException();
|
private org.hibernate.type.EntityType | getEntityType()
return TypeFactory.manyToOne(
getReferencedEntityName(),
null,
false,
false,
isEmbedded(),
isIgnoreNotFound()
);
|
public org.hibernate.FetchMode | getFetchMode()
return FetchMode.JOIN;
|
public java.lang.String | getReferencedEntityName()
return referencedEntityName;
|
public Table | getTable()Table of the owner entity (the "one" side)
return referencingTable;
|
public org.hibernate.type.Type | getType()
return getEntityType();
|
public boolean | hasFormula()
return false;
|
public boolean | isAlternateUniqueKey()
return false;
|
public boolean | isEmbedded()
return embedded;
|
public boolean | isIgnoreNotFound()
return ignoreNotFound;
|
public boolean | isNullable()
return false;
|
public boolean | isSimpleValue()
return false;
|
public boolean | isValid(org.hibernate.engine.Mapping mapping)
if (referencedEntityName==null) {
throw new MappingException("one to many association must specify the referenced entity");
}
return true;
|
public void | setAssociatedClass(PersistentClass associatedClass)Associated entity on the many side
this.associatedClass = associatedClass;
|
public void | setEmbedded(boolean embedded)
this.embedded = embedded;
|
public void | setIgnoreNotFound(boolean ignoreNotFound)
this.ignoreNotFound = ignoreNotFound;
|
public void | setReferencedEntityName(java.lang.String referencedEntityName)Associated entity on the "many" side
this.referencedEntityName = referencedEntityName==null ? null : referencedEntityName.intern();
|
public void | setTypeUsingReflection(java.lang.String className, java.lang.String propertyName)
|