Hi Andrea, thank you for your comment. I have implemented this and it works. However, this looks like a Hibernate way only. Is it possible to achieve the same thing with JPA?