Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d907a7b

Browse files
committed
hibernate
1 parent da2384a commit d907a7b

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ At the beginning, it was the repository with questions from Java interviews. Cur
160160
- [How lazy loading works in hibernate?](hibernate.md#how-lazy-loading-works-in-hibernate)
161161
- [Optimal queries in Hibernate?](hibernate.md#optimal-queries-in-hibernate)
162162
- [Possible enum mapping solutions?](hibernate.md#possible-enum-mapping-solutions)
163+
- [In which cases LazyInitializationException can occur?](hibernate.md#in-which-cases-lazyinitializationexception-can-occur)
164+
- [There are three SQL statements in one transaction, during the first one exception occurred on DB level, what will happen with others if you catch the first one?](hibernate.md#there-are-three-sql-statements-in-one-transaction-during-the-first-one-exception-occurred-on-db-level-what-will-happen-with-others-if-you-catch-the-first-one)
163165

164166
## Git
165167
- [What is the difference between merge and rebase?](git.md#what-is-the-difference-between-merge-and-rebase)

hibernate.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
- [How lazy loading works in hibernate?](#how-lazy-loading-works-in-hibernate)
1212
- [Optimal queries in Hibernate?](#optimal-queries-in-hibernate)
1313
- [Possible enum mapping solutions?](#possible-enum-mapping-solutions)
14+
- [In which cases LazyInitializationException can occur?](#in-which-cases-lazyinizializtion-can-occur)
15+
- [There are three SQL statements in one transaction, during the first one exception occurred on DB level, what will happen with others if you catch the first one?](#there-are-three-sql-statements-in-one-transaction-during-the-first-one-exception-occurred-on-db-level-what-will-happen-with-others-if-you-catch-the-first-one)
1416

1517
## What is detached entity?
1618
- A `new` instance of a persistent class which is not associated with a `Session`, has no representation in the database and no identifier value is considered ***transient*** by Hibernate.
@@ -82,4 +84,12 @@ Allowing to explicitly flush the Session gives finer control that may be require
8284
###### Relative links:
8385
- https://thorben-janssen.com/hibernate-enum-mappings/#standardMapping
8486

87+
## In which cases LazyInitializationException can occur?
88+
###### Relative links:
89+
- https://thorben-janssen.com/lazyinitializationexception/
90+
91+
## There are three SQL statements in one transaction, during the first one exception occurred on DB level, what will happen with others if you catch the first one?
92+
All Java code after Exception catching will be normally executed with other statements, but at the moment you want to try to close transaction, it won't commit any of statements,
93+
because transaction was marked as "to be rollbacked".
94+
8595
[Home Page](README.md)

0 commit comments

Comments
 (0)