You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
tylertreat edited this page Jan 17, 2013
·
1 revision
The Unique annotation is used to indicate if an entity class's field is unique to the table when being persisted to the database. More concisely, this annotation is used to define a unique constraint on a column. This has no effect on a field that is marked transient.
Unique Example
The following example shows how the field mBar is made unique.