Thanks Kaushik but I Getting below error.
It is for the line wt.query.QueryException
(EPMDocument.class,EPMDocument.CONTAINER_NAME,SearchCondition.EQUAL,"mytest2"),new int[] { 0 });
: Attribute "containerReference.name" is not a member of class "class wt.epm.EPMDocument" Nested exception is: Attribute "containerReference.name" is not a member of class "class wt.epm.EPMDocument"; nested exception is: (wt.pom.pomResource/0)
wt.pom.PersistenceException : A persistence error occurred. System message follows: Nested exception is: (wt.introspection.introspectionResource/2)
wt.introspection.WTIntrospectionException : containerReference.name column not found for V_EPMDocument. at wt.introspection.DatabaseViewInfo.getColumnDescriptor(
DatabaseViewInfo.java:302 ) at wt.pds.DatabaseInfoUtilities.getValidColumnDescriptor(
DatabaseInfoUtilities.java:339 ) at wt.pds.DatabaseInfoUtilities.getValidColumnDescriptor(
DatabaseInfoUtilities.java:377 ) at wt.pds.DatabaseInfoUtilities.getPersistableColumnDescriptor(
DatabaseInfoUtilities.java:666 ) at wt.query.ClassAttribute.validate(
ClassAttribute.java:1054 ) at wt.query.ClassAttribute.setAttributeName(
ClassAttribute.java:218 ) at wt.query.ClassAttribute.<init>(
ClassAttribute.java:468 ) at wt.query.SearchCondition.initialize(
SearchCondition.java:2234 ) at wt.query.SearchCondition.<init>(
SearchCondition.java:1433 ) at wt.query.SearchCondition.<init>(
SearchCondition.java:1388 ) at com.slb.test.EPMSearch.main(
EPMSearch.java:51 )