g:select chooselist problems

class ProcessParamNames has the following fields:-
String id
String paramDesc
String displayName
ProcessParamType type

1. Note the single quotes for the argument of findAll so that the from double-quotes do not break
2. Note the use of findAll instead of findAllByType or findWhere since it belongsTo another table

1. Cannot use ProcessParamNames.findAllByType(‘PID’) since there is no such method accepting String as input
2. Cannot use ProcessParamNames.findAllWhere(type:’PID’) for the same reason


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s