net.java.ao.schema
Annotation Type NotNull


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface NotNull

Marks a specific field as to be constrained to non-NULL values within the database. This functionality is handled through the schema indicating to the database that the constraint should be enforced. ActiveObjects itself does no checking to ensure that the value of the field can only be non-NULL. For most databases, this means that the field corresponding to the method in question will be defined with the NOT NULL clause.

This annotation is only relevant to migrations. It has no effect upon "runtime" entity usage.

Author:
Daniel Spiewak



Copyright © 2007-2013. All Rights Reserved.