Documentation Home
MySQL Cluster API Developer Guide
Download this Manual
PDF (US Ltr) - 4.9Mb
PDF (A4) - 4.8Mb
EPUB - 1.9Mb
HTML Download (TGZ) - 1.8Mb
HTML Download (Zip) - 1.9Mb


4.3.2.14 PrimaryKey

Annotation on a member to define it as a primary key member of a class or persistent interface.

4.3.2.14.1 Synopsis
 @Target(value={java.lang.annotation.ElementType.TYPE, java.lang.annotation.ElementType.FIELD, java.lang.annotation.ElementType.METHOD}) @Retention(value=java.lang.annotation.RetentionPolicy.RUNTIME) public @interface PrimaryKey {
  public String name ;
  public String column ;
  public Column[] columns ;
}

Figure 4.35 PrimaryKey Class

PrimaryKey Class

4.3.2.14.2 column

Name of the column to use for the primary key

Parameters

return

the name of the column to use for the primary key

4.3.2.14.3 columns

The column(s) for the primary key

Parameters

return

the column(s) for the primary key

4.3.2.14.4 name

Name of the primary key constraint

Parameters

return

the name of the primary key constraint


User Comments
Sign Up Login You must be logged in to post a comment.