Hi Hrishikesh,
I am getting the below error
D:\ptc\Windchill_10.2\Windchill\codebase\wt\part\WTPart.class: warning: Cannot f
ind annotation method 'compositeIndex3()' in type 'TableProperties'
TableBuilder.java:125: error: no suitable constructor found for QuerySpec(Search
Condition)
QuerySpec qs = new QuerySpec(new wt.query.SearchCondition(wt.doc
.WTDocument.class,"typeDefinitionReference.key.id", wt.query.SearchCondition.EQU
AL, typeDefRef.getKey().getId()));
^
constructor QuerySpec.QuerySpec(boolean) is not applicable
(actual argument SearchCondition cannot be converted to boolean by method
invocation conversion)
constructor QuerySpec.QuerySpec(Class[]) is not applicable
(actual argument SearchCondition cannot be converted to Class[] by method
invocation conversion)
constructor QuerySpec.QuerySpec(Class,Class,QuerySpec) is not applicable
(actual and formal argument lists differ in length)
constructor QuerySpec.QuerySpec(Class,Class) is not applicable
(actual and formal argument lists differ in length)
constructor QuerySpec.QuerySpec(String) is not applicable
(actual argument SearchCondition cannot be converted to String by method i
nvocation conversion)
constructor QuerySpec.QuerySpec(Class) is not applicable
(actual argument SearchCondition cannot be converted to Class by method in
vocation conversion)
constructor QuerySpec.QuerySpec() is not applicable
(actual and formal argument lists differ in length)
Note: TableBuilder.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
3 errors
100 warnings
And my code looks like
TypeDefinitionReference typeDefRef = TypedUtility.getTypeDefinitionReference("xxx.xx.yy.AdviceAndInstruction");
QuerySpec qs = new QuerySpec(new wt.query.SearchCondition(wt.doc.WTDocument.class,"typeDefinitionReference.key.id", wt.query.SearchCondition.EQUAL, typeDefRef.getKey().getId()));
qs.setQueryLimit(10000);