Tag Archives: java

Second Level Cache For SQL Queries Under Hibernate

Second level cache in Hibernate allows to greatly speed-up your application by minimizing number of SQL queries issued and serving some results from in-memory cache (with optional disk storage or distributed cache). You have option to plug in different cache … Continue reading

Posted in en | Tagged , , , , , | Comments Off on Second Level Cache For SQL Queries Under Hibernate

Generic Types in Java 1.5

Generics are very useful Java language feature introduced in Java 1.5. Starting from 1.5 you can statically declare expected types of objects inside collections and compiler will enforce this assumption during compilation: Map<String, BankAccount> bankAccounts = new HashMap<String, BankAccount>(); bankAccounts.put("a1", … Continue reading

Posted in en | Tagged , , | Comments Off on Generic Types in Java 1.5

Static Verification for J2EE-Based Software

J2EE is a set of Java-based technologies used to build applications accessible over the network. Flexibility and the ability to configure, based mainly on XML files, leads to the fact that more and more errors are beyond the control of … Continue reading

Posted in en | Tagged , , | 1 Comment

Eclipse hangs – solved!

Sometimes you see that Eclipse stops responding and causes 100% of CPU usage (UI controls not redrawn). The only action can be taken then is to kill eclipse process. I discovered that it's caused by big console output option. Test … Continue reading

Posted in en | Tagged , , | Comments Off on Eclipse hangs – solved!

org.hibernate.PropertyAccessException: exception setting property value with CGLIB

The error org.hibernate.PropertyAccessException: exception setting property value with CGLIB (set hibernate.cglib.use_reflection_optimizer=false for more info) setter of XYZ.setStatus(). Cause Using primitive types (long) where NULL is possible or using wrong type (i.e. String if "char" is declared in HBM file). Resolution … Continue reading

Posted in en | Tagged , , , | Comments Off on org.hibernate.PropertyAccessException: exception setting property value with CGLIB