@Transactional, method inside method
<p>I have a Service with a method calling another method. In the first method, I perform only queries with SELECT, but they have to see the INSERTS and UPDATES done in the second method.</p>

<p>Then, I have to deal with transactions. I'm using Spring, so I can use the @Transactional annotation.</p>

<p>Which of the following options seems to be more correct for you?</p>

<p><strong>Option A</strong></p>

<pre><code>@Transactional
public void generate(){
    // selects
    save(a);
    // more selects
}

@Transactional
public void save(Object a){
    //save the object
}
</code></pre>

<p><strong>Option B</strong></p>

<pre><code>public void generate(){
    // selects
    save(a);
    // more selects
}

@Transactional
public void save(Object a){
    //save the object
}
</code></pre>

<p>Thanks!!</p>