public class ReferenceField extends FieldDetails
For example, an Order-LineItem link would have the LineItem contain a "reference" back to Order.
Limited support for collection mapping is provided. This reflects the pragmatic goals of ROO and the fact a user can edit the generated files by hand anyway.
This field is intended for use with JSR 220 and will create a @ManyToOne and @JoinColumn annotation.
comment| Constructor and Description |
|---|
ReferenceField(String physicalTypeIdentifier,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
Cardinality cardinality,
Cascade cascadeType) |
| Modifier and Type | Method and Description |
|---|---|
void |
decorateAnnotationsList(List<AnnotationMetadataBuilder> annotations) |
Fetch |
getFetch() |
String |
getJoinColumnName() |
String |
getReferencedColumnName() |
void |
setFetch(Fetch fetch) |
void |
setJoinColumnName(String joinColumnName) |
void |
setReferencedColumnName(String referencedColumnName) |
getAnnotations, getColumn, getComment, getFieldName, getFieldType, getInitedAnnotations, getModifiers, getPhysicalTypeIdentifier, getValue, isNotNull, isNullRequired, isUnique, setAnnotations, setColumn, setComment, setModifiers, setNotNull, setNullRequired, setUnique, setValuepublic ReferenceField(String physicalTypeIdentifier, org.springframework.roo.model.JavaType fieldType, org.springframework.roo.model.JavaSymbolName fieldName, Cardinality cardinality, Cascade cascadeType)
public void decorateAnnotationsList(List<AnnotationMetadataBuilder> annotations)
decorateAnnotationsList in class FieldDetailspublic Fetch getFetch()
public String getJoinColumnName()
public String getReferencedColumnName()
public void setFetch(Fetch fetch)
public void setJoinColumnName(String joinColumnName)
public void setReferencedColumnName(String referencedColumnName)
Copyright © 2009–2016. All rights reserved.