|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface JcrChildNode
This annotation is used to mark fields that are to be mapped as
JCR child nodes.
It can be applied to fields whos type has been mapped to Jcrom, or
to a java.util.List that is parameterized with a mapped implementation.
Note that JCROM creates a container node for all child nodes. The child
node is then created with the name retrieved via calling JcrEntity.getName()
on the child object.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
containerMixinTypes
Mixin types to be added to the container node. |
java.lang.String |
containerNodeType
The node type to be applied for the child container node. |
boolean |
createContainerNode
Setting this to false will mean not creating a container node for single child objects. |
boolean |
lazy
Setting this to true will turn on lazy loading for this field. |
java.lang.String |
name
The name of the JCR container node for the child/children. |
public abstract java.lang.String name
public abstract java.lang.String containerNodeType
public abstract java.lang.String[] containerMixinTypes
public abstract boolean lazy
public abstract boolean createContainerNode
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||