Hibernate | javax.persistence.OptimisticLockException: Row was updated or deleted by another transaction

| By Webner

You may face following exception while trying to update data in a database table using hibernate: javax.persistence.OptimisticLockException : Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [com.abc.pkg.db.entities.customer.CustomerOfferScheduledTask#2504849] The reason is optimistic lock is applied on

Secure Apache Webserver

| By Webner

By default Apache web server does not come with all the securities enabled. We have to enable enhanced securities before making it live & accessible to the outside world. Remove Server Version Banner : Modify httpd.conf and add following directives

How To get list of all system defined properties in java

| By Webner

Just write below line in your main java program and it will show you all System defined properties. System.out.println(System.getProperties()); Some of the important properties that we can use generally: 1. user.dir will give project root directory location. 2. java.class.path will

Eclipse – Java decompiler (jd-eclipse)

| By Webner

If you are working with eclipse IDE, it provides many plugins and one of them is java decompiler. This plugin will decompile all your class files to give you Java source code. JD-Eclipse is a plug-in for the Eclipse platform.

Zoho CRM | Reduce API call consumption

| By Webner

This is a simple idea to reduce API calls consumption when you pull data from Zoho CRM into an integrated piece of code (like server side code in PHP or Java that connects to Zoho CRM to retrieve records). In

Maven | Using Properties defined in pom.xml in .properties file

| By Webner

We are working on a web application built in spring MVC. We have some resources inside src/main/resources folder (Maven Project). The resources are Property files with data in the form of key-value pairs. We are using maven property placeholder syntax