Merge pull request #6611 from eugenp/FIX-onBeforeConvert
BAEL-1961: Fixed UserModelListener.onBeforeConvert()
This commit is contained in:
commit
32ae967b76
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue