Subscribe for updates on posts
Be the first to read the latest news

Most popular programming languages in 2017 – Stack Overflow survey

July 11th, 2017 by admin in Software Development, Software Outsourcing Romania, Tools

Popular_programming_languages_StackOverflow

Or the Good, the Bad and the Most Wanted of Coding tools

Software engineers feel strongly when choosing between one technology or another. And it sure pays to listen to them carefully. We certainly do, at Tremend. The yearly survey from Stack Overflow is one of the most relevant sources of industry insights. Here are some interesting findings for 2017.

 

Read the rest of this entry »


Spring+JPA with MySQL/Oracle configurations

September 6th, 2010 by Ioan Cocan in Java, General, Spring Framework

Spring Framework

During development for a solution based on Spring+JPA+MySQL/Oracle we came across two settings to watch for.

1. Database isolation level

The default isolation level in MySQL is REPEATABLE READ, different from the default in Oracle (READ_COMMITTED). It seems this is kept for historical reasons related to the replication. Still, the effect is that for example a database query will return the same result, no matter if some other transaction has meanwhile changed the database.

For checking the current MySQL isolation level: SELECT @@GLOBAL.tx_isolation, @@tx_isolation;

For changing the isolation level add: “transaction-isolation = REPEATABLE-READ” to you MySQL configuration.

2. JPA transaction configuration

For those accustomed to Hibernate default configuration, the default JpaTransactionManager comes with a different default for behavior related to transaction configuration. The “globalRollbackOnParticipationFailure” is set to true, that means a failed transaction will trigger a global rollback. If you want to change that and be the decision maker if the global transaction should be rolled back or not, set globalRollbackOnParticipationFailure to false.