How to use Entity that pass from java action to query in Java code ?

0
Hi all, I create my java action to return anything from database , I pass Entity that is parameter. Ho can I use that parameter just like a entity in this code   XPath<IMendixObject> xpath = XPath.create(getContext(), XXXXXXXXXX.getType());   I have no idea to pass it to statement.  
asked
1 answers
0

I can sole probelm with 

		IContext context =getContext();
		IMendixObject newEntity = Core.instantiate(context,this.EntityName);
		XPath<IMendixObject> xpath = XPath.create(getContext(), newEntity.getType());

 

answered