Declarative-compatible front-end for the :class:`.CompositeProperty` class. Public constructor is the :func:`_orm.composite` function. .. versionchanged:: 2.0 Added :class:`_orm.Composite` as a Declarative compatible subclass of :class:`_orm.CompositeProperty`. .. seealso::
| 918 | |
| 919 | |
| 920 | class Composite(CompositeProperty[_T], _DeclarativeMapped[_T]): |
| 921 | """Declarative-compatible front-end for the :class:`.CompositeProperty` |
| 922 | class. |
| 923 | |
| 924 | Public constructor is the :func:`_orm.composite` function. |
| 925 | |
| 926 | .. versionchanged:: 2.0 Added :class:`_orm.Composite` as a Declarative |
| 927 | compatible subclass of :class:`_orm.CompositeProperty`. |
| 928 | |
| 929 | .. seealso:: |
| 930 | |
| 931 | :ref:`mapper_composite` |
| 932 | |
| 933 | """ |
| 934 | |
| 935 | inherit_cache = True |
| 936 | """:meta private:""" |
| 937 | |
| 938 | |
| 939 | class ConcreteInheritedProperty(DescriptorProperty[_T]): |