persistence@glassfish.java.net

access type of Embeddable types

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Thu, 09 Feb 2006 20:19:44 +0530

Hi Mike,

Section #2.1.5:
/Embeddable classes must adhere to the requirements specified in Section
2.1 for entities with the exception
that embeddable classes are not annotated as Entity. The access type for
an embedded object is
determined by the access type of the entity in which it is embedded./

This means I *can't* use an Embeddable in two different Entity types one
with *field* access while another with *property* access. Sounds very
limiting to me.

Thanks,
Sahoo