and has no
 effect.</div>
<dl class="notes">
<dt>Parameters:</dt>
<dd><code>attribute</code> - attribute</dd>
<dt>Throws:</dt>
<dd><code><a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/IllegalStateException.html" title="class or interface in java.lang" class="external-link">IllegalStateException</a></code> - if this EntityGraph has been
         statically defined</dd>
</dl>
</section>
</li>
<li>
<section class="detail" id="addSubgraph(jakarta.persistence.metamodel.Attribute)