use javax.persistence.FlushModeType instead of Hibernate FlushMode
set convertEmptyStringsToNull=false in unit test