Metadata to configure underlying table of ManagedObject persistent type.
Adding this metadata to a persistent type (T
in ManagedObject<T>
) configures the behavior of the underlying table.
For example:
class User extends ManagedObject<_User> implements _User {}
@ManagedTableAttributes(unique: const [#name, #email]);
class _User {
@managedPrimaryKey
int id;
String name;
String email;
}
Constructors
- ManagedTableAttributes({List<Symbol> uniquePropertySet })
-
Metadata for persistent type.
const - ManagedTableAttributes.unique(List<Symbol> properties)
-
Configures each instance of persistent type to be unique for the combination of
properties
.const
Properties
- uniquePropertySet → List<Symbol>
-
Each instance of the associated persistent type is unique for these properties.
final - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited