Skip to content
This repository was archived by the owner on Mar 18, 2021. It is now read-only.
This repository was archived by the owner on Mar 18, 2021. It is now read-only.

Annotation @ManagedTableAttributes: Is not working. #960

Open

Description

@marciotrix77

I am trying to use the @ManagedTableAttributes annotation to define two properties of a table as unique, but Aqueduct is not recognizing this annotation.

Error Mensagem: "Undefined name 'ManagedTableAttributes' used as an annotation.Try defining the name or importing it from another library."

I am using Aqueduct version ^ 3.3.0 + 1 and dart sdk version 2.10.5.

My code:

`import 'package:agclinic/model/functionality.dart';
import 'package:agclinic/model/perfil.dart';

import '../agclinic.dart';

class ProfileFunctionality extends ManagedObject<_ProfileFunctionality>
implements _ProfileFunctionality{

}

@ManagedTableAttributes(uniquePropertySet: const [#profile, #functionality])
class _ProfileFunctionalitye{

@PrimaryKey
int id;

@RELATE(#profileFunctionality)
Profile profile;

@RELATE(#profileFunctionality)
Functionality functionality;

}`

Activity

  1. Reductions commented on Mar 15, 2021

    @Reductions
    Contributor

    There is no such an anotation. What you need to use is @Table(...);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions