Its quite common when you create an application, there is a need to create an audit trail on the application level where all entity insert, update and delete events are logged. In this post, I would like to describe a simple approach that can help you to avoid littering with unnecessary statements in your application [...]
Read Full Post »
Posted by Alexander Zagniotov in: hibernate, java, xml on Mar 8th, 2009 15:42
Recently during development, I encountered a situation where I had to map two collections in the same entity, having collections and the entity it self of the same type. I had persistent entity – Rule. Rule could have children rules: “action” rules and “else” rules. Children rules were also of type Rule. Basically it was [...]
Read Full Post »
Posted by Alexander Zagniotov in: design patterns, hibernate on Sep 14th, 2008 22:00
Hi all… i encountered a small problem in doing bitwise operations with hibernate. Until now, HIbernate 2 HQL parser has supported bitwise operations. Hibernate 3 for some reason does not support it. So if you want to work around it, you have to create a custom SQLfunction and add it to the dialect, that will [...]
Read Full Post »
Posted by Alexander Zagniotov in: hibernate, java on May 6th, 2008 22:40