Added generator code and code samples for: http://2lips.pl/blog/hibernate-generator-dynamic-foreign-key