如何在 GAE 中将属性设置为唯一?
例如,如果我有
Entity person1 = new Entity ("Person");
person.setProperty("name","Adelin"); // I want to define this as Unique ! No Duplication !
Entity person2 = new Entity ("Person");
person.setProperty("name","Adelin");
datastore.save(person1);
datastore.save(person2); // I want here to throw some exception !!
我想要Java的答案