make roo generated Comparable methods
Now that the tiles code seems stable (sort of) i ´m continuing with my work in a ordering feature for the generated lists in Roo.
I want to generate Comparable entities, that implies two things:
First Make entities implement Comparable
Second generate the compareTo method
The second part is easy, but i have no idea how can i make the entities implement an interface (i missed duck typing :( )
Can anyone point me to some addon wich makes a class implement an interface to study the code??
By the way, till the moment i´ve modified the controller addon to add a sort method and the jsp addon to generate a clickable headers pointing to the sort method :) Roo´s code seems a bit complicated the first time, but later it becomes very interesting :)