[Hibernate3] Json has field value

Cherry-picked and adapted to hibernate 3 the PR #46