Table class

Annotation to configure the table definition of a ManagedObject.

Adding this metadata to a table definition (T in ManagedObject<T>) configures the behavior of the underlying table. For example:

    class User extends ManagedObject<_User> implements _User {}

    @Table(name: "_Account");
    class _User {
      @primaryKey
      int id;

      String name;
      String email;
    }

Constructors

Table({String name, List<Symbol> uniquePropertySet })
Default constructor. [...]
const
Table.unique(List<Symbol> properties)
Configures each instance of a table definition to be unique for the combination of properties. [...]
const

Properties

name → String
The name of the underlying database table. [...]
final
uniquePropertySet → List<Symbol>
Each instance of the associated table definition 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

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited