Exam4Training

Which of the following descriptions of this code is wrong?

A developer defines an entity class Student.java and uses the following code to construct a teaching table:

Entity(tableName="student",ignoredColums =["ignoredColumn1"," ignoredColumn2", indices =(@Index(value =("firstName." ,"lastName",name="name_index", unique = true)))

Public class User extends OrmObject{

@PrimaryKey(autoGenerate= true)

Private Integer userld;

Private String firstName;

Private String lastName;

Private int age;

Private double balance;

Private int ignoredColumnl;

Private int ignoredColumn2;

}

Which of the following descriptions of this code is wrong?
A . lgnoredColumns indicates that the field does not need to be added to the attributes of the student table
B . lndices creates a composite index name_index for the firstName and 1astName fields
C . The name of the data table is student
The index value of the
D . composite index name_index is not unique

Answer: D

Exit mobile version