I often notice that Modello users use to develop their own utility static methods in order to create Modello generated models, I wonder if it would make sense adding support for generating that method.
public class Dependency
{
// fields, getters/setters
public static Dependency newDependencyInstance(/*all fields here*/)
{
Dependency dependency = new Dependency();
// set all values
return dependency;
}
public static Dependency newDependencyInstance(/*only fields without default values*/)
{
return newDependencyInstance(/*required an default values*/);
}
}
I often notice that Modello users use to develop their own utility static methods in order to create Modello generated models, I wonder if it would make sense adding support for generating that method.
I'd immagine something like:
that generates