http://www.java-forums.org/advanced-java/52441-primary-key-generation-jpa-sequence-type.html