Related questions
Question 174 - H14-231_V1.0 discussion
A developer defines an entity class
Student.java and use the following code to construct the table:
@Entity(tableName ='student', ignoredColums
=['ignoredColumn1','ignoredColumn2', indices
= (@Index(value =('firstName.','lastName',
name='name_index', unique = true)))
pub1ic class User extends OrmObject{
@PrimaryKey(autoGenerate= true)
private Integer userld;
private String firstName;
private String lastName;
private int age;
private doub1e balance;
private int ignoredColumn1;
private int ignoredColumn2;
}
Which of the following descriptions of this code is wrong?
A.
ignoredColumns' indicates that the field does not need to be added to the attributes of the student table
B.
Doubles creates composite indexes name_index for the 'firstName' and '1astName' fields
C.
The name of the data sheet is 'student'.
D.
The index value of the composite index 'name_index' is not unique
Your answer:
0 comments
Sorted by
Leave a comment first