Using the JDO / DataNucleus / NeoDatis Data Warehouse
I added @Unique to the stable object field, however I am allowed to create several objects that violate the unique constraint. Docs for DataNucleus / NeoDatis show that unique fields are supported.
@PersistenceCapable
public class User {
@Persistent
@Unique
private String username;
}
If I add several objects to the database with the same username, this is not a problem.
source
share