Friday, August 8, 2014

Customising generated endpoint class - DuplicateRestPathException


Was going build a list function derived from the generated one for a custom query. The GPE gave me  a DuplicateRestPathException. The problem was the return object crashed with the generated function. To solve the problem, I declared another path for my list function.

@SuppressWarnings({ "unchecked", "unused" })
@ApiMethod(name = "listEntitiesWithCondition", path="list_entities_with_condition")
public CollectionResponse<Entity> listEntitiesWithCondition(@Named("para") String para)
{
         String queryString = "select from Entity as Entity where blah blah blah";
 return listEntities(para,null,null); //The generated function
}

No comments:

Post a Comment

Applying SMA10/20, SMA20/50 as trading signals

This is the comparison for results before and after applying SMA10/20 and SMA20/50 in the stock trader. Background Trading 3 stock ma...