This is off the top of my head so excuse me if I get something wrong... > Is there a way to know if an object is a part of a relation by its ClassMetaData? Not the ClassMetaData itself. You can look at the fields(FieldMetaData) for a particualr ClassMetaData.
> For example, if A has a OneToOne relation with B.. can i know that B is in a relation only by B's ClassMetaData? If it is a bi-directional relationship, yes. If it is unidirectional I can't say for certain. Thanks, Rick On Fri, Nov 12, 2010 at 8:47 AM, idan <[email protected]> wrote: > > Again.. I did some homework... > > loadPersistentTypes is called after the StoreManager.open() method and > therefore the ClassMetaData array is empty in this stage. > > Is there a way to know if an object is a part of a relation by its > ClassMetaData? > > For example, if A has a OneToOne relation with B.. can i know that B is in > a > relation only by B's ClassMetaData? > > Thanks, > Idan >
