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.
/*
* Copyright (C) 2015 Archie L. Cobbs. All rights reserved.
*/
package io.permazen;
/**
* 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 io.permazen.annotation.JField#unique
* @see JObject#revalidate JObject.revalidate()
* @see JTransaction#validate JTransaction.validate()
*/
public interface UniquenessConstraints {
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy