Temporarily disabled unique constraint on Realm names as it breakes tests

This commit is contained in:
Stian Thorgersen 2014-04-25 17:58:33 +01:00
parent dabf101d96
commit 573c88564b
2 changed files with 2 additions and 2 deletions

View file

@ -35,7 +35,7 @@ public class RealmEntity {
@Id
protected String id;
@Column(unique = true)
//@Column(unique = true)
protected String name;
protected boolean enabled;

View file

@ -23,7 +23,7 @@ import java.util.Set;
* @author <a href="mailto:mposolda@redhat.com">Marek Posolda</a>
*/
@MongoCollection(collectionName = "realms")
@MongoIndex(fields = { "name" }, unique = true)
//@MongoIndex(fields = { "name" }, unique = true)
public class RealmEntity extends AbstractMongoIdentifiableEntity implements MongoEntity {
private String name;