Hi Madhu Malhar Addepalli ,
the problem is that you are using for the JoinTable the same name table_with_error used for the ClassHavingError entity table.