Merge pull request #6611 from eugenp/FIX-onBeforeConvert
BAEL-1961: Fixed UserModelListener.onBeforeConvert()
This commit is contained in:
commit
32ae967b76
|
@ -21,7 +21,9 @@ public class UserModelListener extends AbstractMongoEventListener<User> {
|
|||
|
||||
@Override
|
||||
public void onBeforeConvert(BeforeConvertEvent<User> event) {
|
||||
event.getSource().setId(sequenceGenerator.generateSequence(User.SEQUENCE_NAME));
|
||||
if (event.getSource().getId() < 1) {
|
||||
event.getSource().setId(sequenceGenerator.generateSequence(User.SEQUENCE_NAME));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue