save method - doesn't flush the Session after an exception occurs

后端 未结 3 476
春和景丽
春和景丽 2020-12-15 22:43
public class SoftwareTest extends UnitTest {

    @Before
    public void setup() {
        Fixtures.deleteAll(); // will fail if comment that. why?????
    }

    @         


        
3条回答
  •  难免孤独
    2020-12-15 23:09

    Maybe someone would repeat my mistake:

    I also come across with this problem. In my case the problem had occured because I set column type integer, and tried to wrote long value. After changing column type it start to work.

提交回复
热议问题