Monday, January 20, 2014

KidzTube - A kids friendly YouTube player App

My son started to use YouTube at age of 2. I have to say YouTube taught my son letters, numbers and more. One thing I realized at the beginning, I can't just be an irresponsible father and leave everything to YouTube. I have to guide my son to use YouTube to let him enjoy and learn. First and most important thing is the content. At the age of two I don't have to worry much about sexual and violent contents, at least he won't intentionally searching those content behind of me. But I have to find

Wednesday, December 4, 2013

Why is Fetch(join) is not working with HQL?

@Fetch(JOIN) will be ignored if you use the Query interface (e.g.: session.createQuery()) but it will be properly used if you use the Criteria interface.

This is practically a bug in Hibernate which was never resolved. It is unfortunate because a lot of applications use the Query interface and cannot be migrated easily to the Criteria interface.

If you use the Query interface you always have to add JOIN FETCH statements into the HQL manually.

Google+