Huawei HCIP-HarmonyOS Application Developer V1.0 H14-231_V1.0 Question # 15 Topic 2 Discussion

Huawei HCIP-HarmonyOS Application Developer V1.0 H14-231_V1.0 Question # 15 Topic 2 Discussion

H14-231_V1.0 Exam Topic 2 Question 15 Discussion:
Question #: 15
Topic #: 2

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


Get Premium H14-231_V1.0 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.