
Spring Data JPA

Quiz
•
Information Technology (IT)
•
Professional Development
•
Easy
PRAVEEN SHARMA
Used 1+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main goal of Object-Relational Mapping (ORM)?
Encrypt data in the database
Map Java objects to database tables
Convert Java to SQL manually
Replace SQL completely
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which annotation is used to mark a class as a JPA entity?
@Bean
@Entity
@Component
@Table
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does @Table(name="employee") specify in an entity class?
Database name
Column name
Table name
Schema name
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of @Column(name="emp_id")?
It maps an entity to a table
It maps a field to a specific column in the table
It sets primary key
It defines table constraints
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which annotation marks a field as the primary key in a JPA entity?
@Column
@GeneratedValue
@Id
@PrimaryKey
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which JPA strategy allows the database to automatically generate primary key values?
AUTO_INCREMENT
@Generated
GenerationType.IDENTITY
@AutoKey
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in EntityManager is used to save a new entity to the database?
store()
insert()
persist()
save()
Create a free account and access millions of resources
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade