These are my Controller and Command. Now i would like to get all fields names. Here is the link to get field names of domain class Get domain class field names. But i need to get field names of Command as i am explaining below
class SocialRecruitingController
{
def getFieldNames()
{
ConnectionsAdvSearchCommand.fields.each
{it->
log.info(it?.name+",");
// Expecting keyword,fname,lname,title,company,school,location,country,postalCode
}
}
class ConnectionsAdvSearchCommand
{
String keyword
String fname;
String lname;
String title;
String company;
String school;
String location;
String country;
String postalCode;
}
}