dormql_analyzer_plugin 0.1.1
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_pluginanalyzer plugin for DormQL - Entity validation rules:
dormql_missing_id– ensure every@Entityhas a primary key (@Idor@PrimaryKey)dormql_multiple_ids– prevent multiple@Idannotations in a single entitydormql_uuid_requires_string– UUID strategy must useStringtypedormql_autoincrement_requires_int– auto-increment strategies requireint/BigIntdormql_id_nullable_not_allowed– ID cannot be nullable whenautoIncrement: falsedormql_id_primarykey_conflict– prevent@Id+@PrimaryKeyconflicts
@OneToOnerelationship validation:dormql_onetoone_missing_target–targetEntityis requireddormql_onetoone_invalid_target–targetEntitymust be an@Entityclassdormql_onetoone_mappedby_not_found–mappedByfield must exist on target entitydormql_onetoone_mappedby_not_onetoone–mappedByfield 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
- Add