Hi Steve,
This is interesting
. The problem is caused by the inflector library which we use to generate pluralized terms for us. So we need to take a look at their code. However Roo should have rolled back based on the fact that it had an exception.
That is a bug on our side (I also tested this in the current M2 release). I'll raise a Jira issue for it.
In the meantime, if you want this to work anyway we have the @RooPlural annotation which lets you specify the plural term manually:
Code:
package com.foo;
import javax.persistence.Entity;
import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;
import org.springframework.roo.addon.plural.RooPlural;
@Entity
@RooEntity
@RooJavaBean
@RooToString
@RooPlural("Teeth")
public class Tooth {
}
Btw. If you are interested to see exceptions when something goes wrong you can use the command 'development mode' before issuing the command that is creating an exception. This helps us see what the issue is.
Regards,
Stefan