OGM-438 Add example in of use in the documentation

Additional commit for https://github.com/hibernate/hibernate-ogm/pull/279
I think an example in the javadoc is nice