user471011
user471011

Reputation: 7386

Grails. domain class and its methods?

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

Answers (2)

Reverend Gonzo
Reverend Gonzo

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

Michael Borgwardt
Michael Borgwardt

Reputation: 346536

This can be done easily via the metaclass:

println Domain.metaClass.methods

Upvotes: 2

Related Questions