Revision 72b5abad
Von Sebastian Diel vor mehr als 10 Jahren hinzugefügt
| src/relation.h | ||
|---|---|---|
|
|
||
|
class Relation {
|
||
|
public:
|
||
|
explicit Relation();
|
||
|
explicit Relation(QString propertyName, bool optional, RelationType type);
|
||
|
Q_DECL_EXPORT explicit Relation();
|
||
|
Q_DECL_EXPORT explicit Relation(QString propertyName, bool optional, RelationType type);
|
||
|
/**
|
||
|
* @brief Relation
|
||
|
* @param propertyName
|
||
|
* @param type
|
||
|
* @param mappedBy Q_PROPERTY in foreign Entity
|
||
|
*/
|
||
|
explicit Relation(QString propertyName, RelationType type,
|
||
|
Q_DECL_EXPORT explicit Relation(QString propertyName, RelationType type,
|
||
|
QString mappedBy = QString(),
|
||
|
QList<CascadeType> cascadeType = {MERGE, PERSIST, REFRESH});
|
||
|
~Relation();
|
||
|
RelationType getType() const;
|
||
|
void setType(const RelationType &value);
|
||
|
Q_DECL_EXPORT ~Relation();
|
||
|
Q_DECL_EXPORT RelationType getType() const;
|
||
|
Q_DECL_EXPORT void setType(const RelationType &value);
|
||
|
|
||
|
QString getPropertyName() const;
|
||
|
void setPropertyName(const QString &value);
|
||
|
Q_DECL_EXPORT QString getPropertyName() const;
|
||
|
Q_DECL_EXPORT void setPropertyName(const QString &value);
|
||
|
|
||
|
bool getOptional() const;
|
||
|
void setOptional(bool value);
|
||
|
Q_DECL_EXPORT bool getOptional() const;
|
||
|
Q_DECL_EXPORT void setOptional(bool value);
|
||
|
|
||
|
QString getMappedBy() const;
|
||
|
void setMappedBy(const QString &value);
|
||
|
Q_DECL_EXPORT QString getMappedBy() const;
|
||
|
Q_DECL_EXPORT void setMappedBy(const QString &value);
|
||
|
|
||
|
QList<CascadeType> getCascadeType() const;
|
||
|
void setCascadeType(const QList<CascadeType> &value);
|
||
|
Q_DECL_EXPORT QList<CascadeType> getCascadeType() const;
|
||
|
Q_DECL_EXPORT void setCascadeType(const QList<CascadeType> &value);
|
||
|
|
||
|
protected:
|
||
|
QString propertyName;
|
||
Auch abrufbar als: Unified diff
Dead End? LNK2001 bei vielen obj.