Closed
Description
Joseph Mason opened DATAMONGO-1297 and commented
I'm not able to uniquely index a property if it's a reference.
For example:
@DBRef
@Indexed(unique = true) // This does not work because of @DBRef
private User user1;
@Indexed(unique = true) // This works fine
private User user1;
I know that it's possible to unique index a DBRef, so I'm not sure why this doesn't work. It seems like a pretty important piece of functionality.
Affects: 1.6.3 (Evans SR3), 1.7.2 (Fowler SR2), 1.8 GA (Gosling)
Referenced from: pull request #329
Backported to: 1.8.1 (Gosling SR1), 1.7.3 (Fowler SR3)