Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Huawei Exam H14-231_V1.0 Topic 2 Question 30 Discussion

Actual exam question for Huawei's H14-231_V1.0 exam
Question #: 30
Topic #: 2
[All H14-231_V1.0 Questions]

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?

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Leigha
15 hours ago
I agree with Renea. Option D is wrong, the composite index 'name_index' is defined as unique.
upvoted 0 times
...
Johnetta
2 days ago
I disagree, I believe the wrong description is D) The index value of the composite index 'name_index' is not unique.
upvoted 0 times
...
Renea
2 days ago
The code seems straightforward, but option D is incorrect. The index value of the composite index 'name_index' is set to unique, so it should be correct.
upvoted 0 times
...
Renea
5 days ago
I think the wrong description is B) Doubles creates composite indexes name_index for the 'firstName' and 'lastName' fields.
upvoted 0 times
...

Save Cancel