This seems to be a bug in Roo. This issue can be reproduced with the following commands:
Code:
project --topLevelPackage com.example.demo --projectName demo --java 6
persistence setup --database HYPERSONIC_IN_MEMORY --provider DATANUCLEUS
entity --class ~.model.Car
field string --fieldName name --notNull
field date --type java.util.Date --fieldName createdDate
web mvc setup
focus --class ~.model.Car
web mvc scaffold ~.web.CarController
Steps to reproduce:
- Create new Roo project wtih the commands above
- Create new car
- Edit car and click on save
- Go to list view
Notice that you will now have 2 cars instead of an edited car.