How is Bean Validation applied to a POJO?
Select an option, then click Submit answer.
- ○ Annotate fields with constraints
- ○ Annotate methods with queries
- ○ Annotate classes with paths
- ○ Annotate packages with roles
Loading demo links...
Showing 1–12 of 12 questions
How is Bean Validation applied to a POJO?
Select an option, then click Submit answer.
What does @NotNull guarantee on a field?
Select an option, then click Submit answer.
What does @Size constrain on a string?
Select an option, then click Submit answer.
When does validation typically run in JPA?
Select an option, then click Submit answer.
Which are standard Bean Validation constraints? (Choose two.)
Select all that apply, then click Submit answer.
CORRECT TEXT
The constraint requiring a non-empty, non-null string with size at least one is often expressed with ______.
Answer is in the explanation below.
Which annotation marks a class as JPA entity?
Select an option, then click Submit answer.
Which annotation marks the primary key field?
Select an option, then click Submit answer.
Which annotations map an entity basics? (Choose two.)
Select all that apply, then click Submit answer.
Which change fetching per association? (Choose two.)
Select all that apply, then click Submit answer.
DRAG DROP
Match each mapping annotation to its purpose.
Items to match: @Entity annotation purpose, @Id annotation purpose, @Temporal annotation purpose, mappedBy attribute purpose.

Answer is in the explanation below.
DRAG DROP
Match each query element to its use.
Items to match: Named parameter syntax, setParameter binding call, @NamedQuery declaration used, JOIN FETCH clause.

Answer is in the explanation below.