I\'m trying to implement a simple DAO. I have a Dao:
@Repository(\"iUserDao\") @Transactional(readOnly = true) public class UserDao implements IUserDao { pri
Try setting the transactional propagation to required, and remove all flush():-
flush()
@Repository("iUserDao") @Transactional(propagation=Propagation.REQUIRED) public class UserDao implements IUserDao { ... }