You are correct, generator is for ID.
I looked at your problem again and now I do not quite understand why do you need to model your class with the composite key. It looks like DB identity column is the unique identifier for a row in the database. And question_id is just the FK to the question. Having them combined in PK does not make sense for me, but that does not matter much.
I suggest mapping as if ANSWER_ID is the sole ID of the answer and have Question mapped as normal many-to-one property.
If you still decide that you need to have composite key, then you may want to investigate org.hibernate.event package
http://www.hibernate.org/hib_docs/v3/re ... ate-events
and may try to define custom class for the identifier…