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:

Pamella
27 days ago
The developer must have been high on caffeine when they wrote this code. Ignore columns? What is this, a selective memory test?
upvoted 0 times
...
Elvis
28 days ago
This code is more complex than my grocery list. I'm just going to go with option C and call it a day.
upvoted 0 times
Ryan
3 days ago
Option C) The name of the data sheet is 'student'.
upvoted 0 times
...
...
Renea
2 months ago
Hmm, you might be right. Let's review the code again to confirm.
upvoted 0 times
...
Markus
2 months ago
Wait, why would you ignore columns? That's like throwing away perfectly good data! I hope the developers have a good reason for that.
upvoted 0 times
Hoa
17 days ago
D) The index value of the composite index 'name_index' is not unique
upvoted 0 times
...
Delbert
19 days ago
C) The name of the data sheet is \'student\'.
upvoted 0 times
...
Shonda
22 days ago
B) Doubles creates composite indexes name_index for the \'firstName\' and \'1astName\' fields
upvoted 0 times
...
Dana
1 months ago
A) ignoredColumns\' indicates that the field does not need to be added to the attributes of the student table
upvoted 0 times
...
...
Leigha
2 months ago
I agree with Renea. Option D is wrong, the composite index 'name_index' is defined as unique.
upvoted 0 times
...
Johnetta
2 months 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 months 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
2 months 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