public class BelongsToAssociation extends AbstractAssociation
| Constructor and Description |
|---|
BelongsToAssociation(Class<?> model)
Creates an instance of a belongsTo association.
|
BelongsToAssociation(String model)
Creates an instance of a belongsTo association.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getGetterName() |
String |
getSetterName() |
void |
setGetterName(String getterName)
The name of the getter function that will be added to the local model's prototype.
|
void |
setSetterName(String setterName)
The name of the setter function that will be added to the local model's prototype.
|
createAssociation, createAssociation, getAssociationKey, getForeignKey, getInstanceName, getModel, getModelName, getPrimaryKey, getType, setAssociationKey, setForeignKey, setInstanceName, setPrimaryKeypublic BelongsToAssociation(String model)
AbstractAssociation.model to the provided
parameters.model - The name of the model that is being associated with.public BelongsToAssociation(Class<?> model)
AbstractAssociation.model to the full
qualified name of the model class or the string from Model.value() if
present on the class.model - The class of the model that is being associated with.public String getSetterName()
public void setSetterName(String setterName)
Corresponds to the setterName config property.
setterName - the new name for the setter functionpublic String getGetterName()
public void setGetterName(String getterName)
Corresponds to the getterName config property.
getterName - the new name for the getter functionCopyright © 2013–2015. All rights reserved.