Reputation: 7386
For example, I read in book that if we created relationship 1:m, Grails automatically add methods addTo*
and removeTo*
and now i think, how i can see all methods my domain class?
for example, some like this: Domain.getAllMethods()
?
Upvotes: 2
Views: 2152
Reputation: 40871
Look at the Grails Documentation on the left pane under Domain.
While Domain.metaClass.methods will give you the list, you're going to need actual documentation behind how they work.
Upvotes: 4
Reputation: 346536
This can be done easily via the metaclass:
println Domain.metaClass.methods
Upvotes: 2