org.springframework.roo.classpath.operations.jsr303
Class ReferenceField
java.lang.Object
org.springframework.roo.classpath.operations.jsr303.FieldDetails
org.springframework.roo.classpath.operations.jsr303.ReferenceField
public class ReferenceField
- extends FieldDetails
Properties used by the many-to-one side of a relationship (called a "reference").
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.
- Since:
- 1.0
- Author:
- Ben Alex
Fields inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails |
comment |
Constructor Summary |
ReferenceField(String physicalTypeIdentifier,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
Cardinality cardinality)
|
Methods inherited from class org.springframework.roo.classpath.operations.jsr303.FieldDetails |
getColumn, getComment, getFieldName, getFieldType, getPhysicalTypeIdentifier, isNotNull, isNullRequired, setColumn, setComment, setNotNull, setNullRequired |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReferenceField
public ReferenceField(String physicalTypeIdentifier,
org.springframework.roo.model.JavaType fieldType,
org.springframework.roo.model.JavaSymbolName fieldName,
Cardinality cardinality)
getJoinColumnName
public String getJoinColumnName()
setJoinColumnName
public void setJoinColumnName(String joinColumnName)
getFetch
public Fetch getFetch()
setFetch
public void setFetch(Fetch fetch)
decorateAnnotationsList
public void decorateAnnotationsList(List<AnnotationMetadata> annotations)
- Overrides:
decorateAnnotationsList
in class FieldDetails
Copyright © 2009-2010 VMware, Inc. All Rights Reserved.