Skip to content

Check for invalid annotation combinations on DAO methods. #298

@xterao

Description

@xterao

If a DAO method is annotated with an incorrect combination of annotations, highlight it as an error.

Examples of Invalid Combinations:

@Insert(sqlFile = true)
@Sql("insert into (id, name) values (1,'name')")
int insertSql();  // Error: cannot combine @Insert(sqlFile=true) with @Sql
@SQLXMLFactory
@Sql("")
SQLXML factory();  // Error: cannot combine @SQLXMLFactory with @Sql

The plugin will inspect annotation usage on DAO methods and trigger error highlighting if any invalid combinations are detected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions