Can I pass Model as an argument in a method using ActiveJDBC?
Something like this:
public Set<String> getColNames(Model modelName){
Set<String> set = modelName.attributeNames();
for(String x: set){
System.out.prtinln(x);
}
return set;
}
That way I can just pass the model and would save a lot of time on doing the same code on each Model right? Like this:
Staff staff = new Staff();
Set<String> set = getColNames(staff);
Is this possible??? Getting the attribute names is just an great example on this, this is not only the purpose why I asked this.
Help would be appreciated!