java: regenerate models with compareTo