Just to make it more clear:

This attribute has precedence over **the** 'flush' attribute, if it is configured to **a** value greater than '0'. If the entity to persist is not an instance of "java.lang.Iterable" and 'flush-size' is greater than '0', then the entity will be flushed as if the 'flush' attribute was set to 'true'.