Home » Author Archives: Aleksey Novik

Author Archives: Aleksey Novik

Aleksey Novik
Software developer, Likes to learn new technologies, hang out on stackoverflow and blog on tips and tricks on Java/Javascript polyglot enterprise development.

Web App Architecture – the Spring MVC – AngularJs stack

spring-interview-questions-answers

Spring MVC and AngularJs together make for a really productive and appealing frontend development stack for building form-intensive web applications.In this blog post we will see how a form-intensive web app can be built using these technologies, and compare such approach with other available options. A fully functional and secured sample Spring MVC / AngularJs web app can be found ...

Read More »

Jar Hell made Easy – Demystifying the classpath with jHades

java-interview-questions-answers

Some of the hardest problems a Java Developer will ever have to face are classpath errors: ClassNotFoundException, NoClassDefFoundError, Jar Hell, Xerces Hell and company. In this post we will go through the root causes of these problems, and see how a minimal tool (JHades) can help solving them quickly. We will see why Maven cannot (always) prevent classpath duplicates, and ...

Read More »

Solving ORM – Keep the O, Drop the R, no need for the M

software-development-2-logo

ORM has a simple, production-ready solution hiding in plain sight in the Java world. Let’s go through it in this post, alongside with the following topics: ORM / Hibernate in 2014 – the word on the street ORM is still the Vietnam of Computer Science ORM has 2 main goals only When does ORM make sense? A simple solution for ...

Read More »

The Java Origins of Angular JS: Angular vs JSF vs GWT

javascript-logo

A superheroic Javascript framework needs a good origin story. Let’s try to patch it together, while going over the use of Angular JS in the enterprise Java world and the Angular take on MVC. This post will go over the following topics, and end with an example:             The Java Origins of Angular JS Angular ...

Read More »

Javascript for Java Developers

software-development-2-logo

This post will go over the Javascript language from the point of view of a Java developer, focusing on the differences between the two languages and the frequent pain points. We will go over the following:                 Objects Only, No Classes Functions are just Values The ‘this’ Keyword Classic vs Prototypal Inheritance Constructors ...

Read More »

Hibernate Debugging – Finding the origin of a Query

jboss-hibernate-logo

It’s not always immediate why and in which part of the program is Hibernate generating a given SQL query, especially if we are dealing with code that we did not write ourselves. This post will go over how to configure Hibernate query logging, and use that together with other tricks to find out why and where in the program a ...

Read More »

Pitfalls of the Hibernate Second-Level / Query Caches

jboss-hibernate-logo

This post will go through how to setup the Hibernate Second-Level and Query caches, how they work and what are their most common pitfalls. The Hibernate second level cache is an application level cache for storing entity data. The query cache is a separate cache that stores query results only. The two caches really go together, as there are not ...

Read More »

Open Session In View Design Tradeoffs

software-development-2-logo

The Open Session in View (OSIV) pattern gives rise to different opinions in the Java development community. Let’s go over OSIV and some of the pros and cons of this pattern.   The problem The problem that OSIV solves is a mismatch between the Hibernate concept of session and it’s lifecycle and the way that many server-side view technologies work. ...

Read More »

Spring/Hibernate improved SQL logging with log4jdbc

jboss-hibernate-logo

Hibernate provides SQL logging out of the box, but such logging only shows prepared statements, and not the actual SQL queries sent to the database. It also does not log the execution time of each query, which is useful for performance troubleshooting. This blog post will go over how to setup Hibernate query logging, and then compare it to the ...

Read More »
Do you want to know how to develop your skillset and become a ...

Subscribe to our newsletter to start Rocking right now!

To get you started we give you our best selling eBooks for FREE!
Get ready to Rock!
To download the books, please verify your email address by following the instructions found on the email we just sent you.

THANK YOU!

Close