Hello there!
If I put:
public CountryState CountryState.find(long id) {
return (CountryState) findById(CountryState.class, id);
}
I'm creating a method find in the class CountryState.
Is there a way to create a method in several classes? Do I need to repeat the code for each class I want to create?
I know that with aspect I can make a class inherit from another, but, doing this, I can create one superclass because java doesn't accept multiple inheritance.