All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.permazen.UniquenessConstraints Maven / Gradle / Ivy

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