Getting exception while executing code!

I am getting this exception while executing code. Could anyone help to fix it ?

Caused by: java.sql.SQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (pro_maven.question, CONSTRAINT FKs6ghcwuovtcp489oo5dy7rvk5 FOREIGN KEY (answer_answer_id) REFERENCES answer (answer_id))

With so little context, nobody can help you.
Share the entity model, the code you’re using to flush these changes to the database as well as the full stack trace.

I have fixed problem Beikov,
Thanks for your suggestion next time, I will share complete.