nt-name type-name-label">Id</span></div>
<div class="block">Identifies the primary key of an entity.

 <p>The field or property to which the <code>Id</code> annotation is
 applied should have one of the following types:
 any Java primitive type;
 any primitive wrapper type;
 <a href="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" class="external-link"><code>String</code></a>;
 <a href="https://docs.oracle.com/en/java/javase/17/docs