io.permazen.UniquenessConstraints Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of permazen-main Show documentation
Show all versions of permazen-main Show documentation
Permazen classes that map Java model classes onto the core API.
The newest version!
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
import io.permazen.annotation.PermazenField;
/**
* JSR 303 validation group for Permazen uniqueness constraints.
*
*
* Explicit use of this class only needed if you wish to manually trigger validation of uniqueness constraints only,
* for example:
*
* user.setUsername(u);
* user.revalidate(UniquenessConstraints.class);
* user.getTransaction().validate(); // throws exception if 'u' is not unique
*
*
* @see PermazenField#unique
* @see PermazenObject#revalidate PermazenObject.revalidate()
* @see PermazenTransaction#validate PermazenTransaction.validate()
*/
public interface UniquenessConstraints {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy