Returns the source table.The source table is the table where the items of
this class are loaded. It can be different from the target table,
which is instead the table where the items are saved. This difference is
allowed to support composed items which are for example the result of
a join of more tables. In this case the application must know where exactly
to save items.
Returns the field containing the primary key of the super class. If not
differently specified this field will be the same as the primary key field,
what means that this class will have the same primary key as its superclass.
Returns the inheritance path for the objects of the persistence class.
The path starts from the class which owns this Metadata to Object,
including only persistent casses (classes whith related metadata)
public void setPrimaryKey(String fieldName, boolean isExternallyGenerated)(Code)
Sets the field "fieldName" as the primary key field. A primary key field
is mandatory for update operations
Parameters: fieldName - The name of the field to use as primary key Parameters: isExternallyGenerated - Indicates if the generation of theprimary key value is externally managed( f.e. from a database sequence )
setPrimaryKeys
public void setPrimaryKeys(String... fieldNames)(Code)
setSourceDomain
public void setSourceDomain(String sourceDomain)(Code)
Sets the source table. The source table is the table where the items of
this class are loaded. It can be different from the target table,
which is instead the table where the items are saved. This difference is
allowed to support composed items which are for example the result of
a join of different tables. In this case the application must know where exactly
save items.
Sets the field which contains the primary key of the superclass. By default
this field is the same as the primary key, what means that the annotated
class has the same primary key as the parent class
setTargetDomain
public void setTargetDomain(String targetDomain)(Code)
Sets the target table. The target table is the table where the items are
saved. Normally the target table and the source table are the same. They
can be made different to support special cases (for example when an item
is loaded from a join of several tables or from a view).
WARNING: If the source table and the target table are different you must
pay attention that all the updatable item fields are contained into the
target table.