Thanks Andy. That worked like a charm.
However, I'm unsure if this is a bug or 'use-it-the-right-way' thing :-). Any case, it solved my problem. Are there any pointers that are worth reading on this area?
I came across this, that looks similar to my problem...
http://jira.jboss.com/jira/browse/EJBTHREE-597
Theit solution is to use "org.hibernate.annotations" rather than "javax.persistence."
That is use:
-------------------------------- WORK-AROUND??? --------------------------------
@org.hibernate.annotations.GenericGenerator(name="Question_id_sequence", strategy = "sequence",
parameters = { @Parameter(name="sequence", value="S_QUESTION") } )
-------------------------------- FOR --------------------------------
@javax.persistence.SequenceGenerator(name = "Question_id_sequence", sequenceName = "S_QUESTION")