Fixed template for REST resource generation.

The entity's simple class name should be used as the
type parameter in the TypedQuery.