//Artefact:ModelClass/com/sphenon/modelling/xmodel/XMTSMJPA

Description

Properties of state management with JPA.

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/UseJPAAnnotations

Description

If true, JPA entity classes are annotated with JPA annotations. This is only partially implemented at present.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☑ classes ∙ ☐ attributes ∙ ☐ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/OnDemandDefaultInitialiser

Description

The result of this expression is assigned to persistent members if they are accessed by their getter and have a null value assigned.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/BeforeStateGetBody

Description

Code, that is inserted in automatically generated state set methods before the actual value is returned.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/BeforeStateSetBody

Description

Code, that is inserted in automatically generated state set methods before the actual assignment takes place.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/AfterStateSetBody

Description

Code, that is inserted in automatically generated state set methods after the actual assignment took place.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/PersistentType

Description

Overrides the PersistentType in XMState.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/PersistentTypeMapper

Description

If specified, this property overrides XMState/PersistentTypeMapper.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/PersistentTypeReverseMapper

Description

If specified, this property overrides XMState/PersistentTypeReverseMapper.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/GenuineModificationCheck

Description

Optionally, an expression that is used in the ADO-set method to compare the old and new already mapped persistent value before actually assigning the value. If both values are the same, according to this provided check, the assignment does not take place.
The expression is expected to be a (JavaCode) Template, which is provided with two parameters 'old_value' and 'new_value' when evaluated, which refer to the values to be compared.
The comparison code must evaluate to a boolean 'true' if both values are the same so that no assignment takes place.
This check is used in circumstances, when the underlying mapper would otherwise falsely reject e.g. the deletion of an object.
Applies to
▸ Model level: ☑ logical model ∙ ☐ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/ManageMappedInstance

Description

If true, next to the mapped persistant instance of an attribute it's application domain type instance is kept in the state adapter, too. Reasons might be caching or alternate conversion procedures, e.g. loading into existing instead of creating new values.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/MappedOnDemandDefaultInitialiser

Description

The result of this expression is assigned to application domain type instance members if they are accessed by their getter and have a null value assigned.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/Body

Description

Code, that is inserted directly into the generated tsm adapter implementation.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☑ classes ∙ ☐ attributes ∙ ☐ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/AdapterBody

Description

Code, that is inserted directly into the generated tsm adapter implementation, but is specified at attributes or association ends
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/Declaration

Description

Code, that is used to declare a member for this attribute. If omitted, the property XMLogicImplementation/Declaration is used, if this is also omitted, a standard declaration is generated based on the attribute type and name.
Applies to
▸ Model level: ☐ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/RegisterObjectRelationalMapping

Description

If true, this instance has an associated ORM which needs to be registered in the global =:-O jpa persistence.xml file.
Applies to
▸ Model level: ☐ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☑ classes ∙ ☐ attributes ∙ ☐ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/ORMXMLProperties

Description

A XML snippet containing additional mapping properties which are inserted into the mapping file.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/ColumnDefinition

Description

The sql data type of a column field in the associated database table.
Applies to
▸ Model level: ☑ logical model ∙ ☐ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/JPAConverter

Description

A Java Class that is used as a JPA converter (org.eclipse.persistence.mappings.converters.Converter) for this attribute.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/JPAAttributeConverter

Description

A Java Class that is used as a JPA converter (javax.persistence.Converter) for this attribute.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/OperationBody

Description

Code, that is used to implement this operation within the JPA backend state class. Used in conjunction with XMLogicImplementation/OperationDelegateToState.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☐ attributes ∙ ☑ operations ∙ ☐ association ends ∙ ☐ states

//Artefact:ModelAttribute/com/sphenon/modelling/xmodel/XMTSMJPA/ElementCollection

Description

Settings for JPA ElementCollections to support types like java.util.Map and alike. In addition to column name, a column key name and the types of key and value may be required.
Applies to
▸ Model level: ☑ logical model ∙ ☑ technical model
▸ Model elements: ☐ packages ∙ ☐ classes ∙ ☑ attributes ∙ ☐ operations ∙ ☑ association ends ∙ ☐ states