public static < T extends Model > T findOrCreateIt ( Object ... namesAndValues ) { return ModelDelegate . findOrCreateIt ( modelClass ( ) , namesAndValues ) ; }
A convenience method to fetch existing model from db or to create and insert new record with attribute values .