Hibernate / JPA Flashcards

1
Q

Benefits and risks of using Hibernate (hibernate)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a SessionFactory? Is it a thread-safe object? (hibernate)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

SessionFactory vs Session / EntityManager vs EntityManagerFactory (hibernate/jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the difference between merge and update (hibernate)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is difference between merge and refresh (jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Hibernate Query Language/ Java Persistence Query Language (HQL/JPQL)? (hibernate/jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Lazy loading (hibernate/jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Describe concept of JPA (ex: EntityManager, EntityManagerFactory, PersistenceContext, PersistenceUnit) - (jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Describe annotation: @Temporal/@Transient/@Table/@Version? - (jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do you mean by Named – SQL query and how to invoke it? (hibernate/jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is the difference between sorted and ordered collection in hibernate? (hibernate/jpa?)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Difference between get() and load() (hibernate)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

find() vs getReference() - (jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the entity states in Hibernate (hibernate - 3 states/jpa - 4 states (additional removed))

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Hierarchy-to-tables mapping strategies (hibernate/jpa)

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ORM incompatibility

A
17
Q

What are the Collection types in Hibernate ?

A
18
Q

Caching levels (hibernate/jpa)

A
19
Q

How to create own user type in hibernate? (hibernate)

A
20
Q

How is laziness One-To-Many implemented in hibernate (hibernate)

A
21
Q

What are the Collection types in Hibernate ?

A
22
Q

new features of jpa 2.1 - (jpa)

A
23
Q

Describe converters in Jpa 2.1 - (jpa)

A
24
Q

Statements order during flushing the session (hibernate)

A