Spring Data JPA

Spring Data JPA

Professional Development

20 Qs

quiz-placeholder

Similar activities

CompTIA Security+ Flash Cards (AAA-GPU)

CompTIA Security+ Flash Cards (AAA-GPU)

Professional Development

20 Qs

CompTIA Security+ (SYO-701) Obj 5

CompTIA Security+ (SYO-701) Obj 5

Professional Development

24 Qs

React and NodeJS with Docker

React and NodeJS with Docker

Professional Development

25 Qs

Lean Six Sigma

Lean Six Sigma

Professional Development

15 Qs

Quiz 03 Pemrograman PHP

Quiz 03 Pemrograman PHP

Professional Development

20 Qs

What I Know ? CTech L3 Unit 2 Lo1 to Lo6

What I Know ? CTech L3 Unit 2 Lo1 to Lo6

Professional Development

18 Qs

SOHO Router and Security Practices Quiz

SOHO Router and Security Practices Quiz

Professional Development

20 Qs

LUYỆN TẬP-T1-BÀI2-TIN9

LUYỆN TẬP-T1-BÀI2-TIN9

Professional Development

16 Qs

Spring Data JPA

Spring Data JPA

Assessment

Quiz

Information Technology (IT)

Professional Development

Practice Problem

Easy

Created by

PRAVEEN SHARMA

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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()

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?