mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-26 23:50:23 +07:00
Suppressed undeclared primary key warning when schema tagged as indexed
This commit is contained in:
parent
fe19de2033
commit
2ab7c7ceb0
@ -62,9 +62,11 @@ final class SchemaElement {
|
||||
return null;
|
||||
}
|
||||
|
||||
context.warn(element,
|
||||
"{element} did not declare any valid {}, using {}",
|
||||
PrimaryKey.class, primaryKeyFieldElement);
|
||||
if (!annotation.indexed()) {
|
||||
context.warn(element,
|
||||
"{element} did not declare any valid {}, using {}",
|
||||
PrimaryKey.class, primaryKeyFieldElement);
|
||||
}
|
||||
}
|
||||
|
||||
TableElement tableElement = TableElement.get(context, typeElement);
|
||||
|
Loading…
Reference in New Issue
Block a user