Fixed UserModelListener.onBeforeConvert()
@@ -21,8 +21,10 @@ public class UserModelListener extends AbstractMongoEventListener<User> {
@Override
public void onBeforeConvert(BeforeConvertEvent<User> event) {
+ if (event.getSource().getId() < 1) {
event.getSource().setId(sequenceGenerator.generateSequence(User.SEQUENCE_NAME));
}
+ }
}
