dormql_analyzer_plugin 0.1.1 copy "dormql_analyzer_plugin: ^0.1.1" to clipboard
dormql_analyzer_plugin: ^0.1.1 copied to clipboard

analyzer plugin for dormql, to analyze dormql annotations and validate them

0.1.1 #

  • fix pubspec.yaml

0.1.0 #

Initial release #

  • Add dormql_analyzer_plugin analyzer plugin for DormQL
  • Entity validation rules:
    • dormql_missing_id – ensure every @Entity has a primary key (@Id or @PrimaryKey)
    • dormql_multiple_ids – prevent multiple @Id annotations in a single entity
    • dormql_uuid_requires_string – UUID strategy must use String type
    • dormql_autoincrement_requires_int – auto-increment strategies require int / BigInt
    • dormql_id_nullable_not_allowed – ID cannot be nullable when autoIncrement: false
    • dormql_id_primarykey_conflict – prevent @Id + @PrimaryKey conflicts
  • @OneToOne relationship validation:
    • dormql_onetoone_missing_targettargetEntity is required
    • dormql_onetoone_invalid_targettargetEntity must be an @Entity class
    • dormql_onetoone_mappedby_not_foundmappedBy field must exist on target entity
    • dormql_onetoone_mappedby_not_onetoonemappedBy field must also be annotated with @OneToOne
  • Quick fixes:
    • Add @Id() int id; or @Id.uuid() String id; for missing ID
    • Remove nullable marker from ID field when not allowed
0
likes
140
points
33
downloads

Publisher

unverified uploader

Weekly Downloads

analyzer plugin for dormql, to analyze dormql annotations and validate them

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

analysis_server_plugin, analyzer, analyzer_plugin

More

Packages that depend on dormql_analyzer_plugin