Skip to content
  • Home
  • About
  • Contact

Yuhui Zhang's Blog

Month: February 2018

Do Not Expect Catch Exception Across JPA Transactions

LinkFebruary 25, 2018March 4, 2018 yuhuizhang8888Leave a comment

One common mistake that a lot Java developers take for granted that if I catch exception then the exception will be hidden for ever, that is totally false, and we should not overuse exception to manage our business workflow. This blog I will talk why should not let expected exceptions to be managed across JPA transactions.

Mockito VS Powermock

LinkFebruary 9, 2018March 4, 2018 yuhuizhang8888Leave a comment

Mockito and Powermock are most popular test frameworks in testing driven development world. In this blog, I will summary the 2 mock frameworks, and talk about some key technical fundamentals.

Do Not Use JPA Entity (Data Object) Across JPA Transactions

AsideFebruary 5, 2018March 4, 2018 yuhuizhang8888Leave a comment

JPA entity is very commonly used in Hibernate involved Java applications, like Spring. Usually you can define DOs (data objects) to manage the database operations in some ORM way, but lots developers do not use the DOs property, one of the very common bad practice is the use the DOs across JPA transactions or outside JPA transactions.

Categories

  • Big Data, Distributed Computing
  • iOS, Android, Mobile Development
  • Java, Spring, Hibernate
  • Javascript/Web Frontend
  • Ruby, Ruby On Rails
  • Uncategorized

Archives

  • June 2019
  • May 2019
  • May 2018
  • April 2018
  • March 2018
  • February 2018
  • January 2018
February 2018
M T W T F S S
 1234
567891011
12131415161718
19202122232425
262728  
« Jan   Mar »

Category Cloud

Big Data, Distributed Computing iOS, Android, Mobile Development Java, Spring, Hibernate Javascript/Web Frontend Ruby, Ruby On Rails Uncategorized
Blog at WordPress.com.
Back to top
Cancel