| Parameter | Type | Applicability | Description | Mandatory |
|---|---|---|---|---|
| name | text | The name for this value object. The name is used to form the generated class name. Using the default pattern, for example, if name is User, an UserValue class is generated. | ||
| match | text | An identifier that can be used to select groups of attributes to be included in this value object. You can repeat this identifier in the method-level @ejb.value-object tag to add a property to a value object. You can use an asterisk (*) as a special value, to indicate that all entity properties is included in this value object. | false | |
| extends | text | The name of the class that the generated value object class extends, if any. | false | |
| implements | text | A comma-separated list of interfaces the generated
value object implements, if any. Note: XDoclet
does not generate methods to implement these interfaces, so use this
only if the interfaces do not contain any methods, or if the value
object superclass (indicated in the extends parameter)
already implements all interface methods.
|
false | |
| abstract | Boolean | Set if this value object is intended to be an abstract object which other value objects extend. | false | |
| generatePKConstructor | Boolean | Set if this value object should have a single argument constructor that sets the primary key only. It is useful when using aggregation and you want to create a relationship between a new object and an existing object with the form of obj.addSomeObjectRelation(new SomeObject(pk)); | false |