title: Inner class as hibernate component
body: <p>Basically, <strong>is that possible</strong>?</p>
  <p>Docs say</p>
  <blockquote>
  <p>A component is a contained object that is persisted as a value type and not an entity reference.</p>
  <p>Like value types, components do not support shared references. In other words, two persons could have the same name, but the two person objects would contain two independent name objects that were only &quot;the same&quot; by value.</p>
  <p>The main distinguishing characteristic of a value type is the fact that they do not define their own lifecycle. We say that they are &quot;owned&quot; by something else (specifically an entity, as we will see later) which defines their lifecycle.</p>
  </blockquote>
  <p>Non-static inner class can fit perfectly into this, but i've never seen examples in practice. Is there any limitation of using inner classes as components?</p>