...
As a result, the Entity Manager service will be injected into the component implementation class. Furthermore, the bundle dependency must be defined in the pom.xml
of the plugin. The following code snippet illustrates how this dependency is defined within the <dependencies>
section of the pom.xml
. Note that the <version>
attribute should state the XperienCentral version against which the plugin is built.
...
The @Property
annotation before a method indicates that the method is the getter method for a particular property that should be persisted by the Entity Manager. The property may be of a primitive type like String
, boolean
and Integer
. Complex object types are supported including FileResource
. Complex property types are discussed in detail in this sectiontopic.
@Property
When the regular @Property
annotation is used for a complex object type, the property is created as a reference. This means that the physical location of the object in the persistence system (for example the JCR) is not defined; it may be stored anywhere in that persistence system. The property itself only stores a reference to this object (in the JCR, for example, it stores the UUID of the node as String property).
...