Hi all !
Consider the following Mapping (simplified)
<class name="Person" table="persons">
<meta attribute="implement-equals">true</meta>
<id name="Id" column="id" type="long" unsaved-value="null">
<generator class="hilo"/>
</id>
<property name="Name" column="name" type="String" not-null="true">
<meta attrbute="use-in-equals">true</true>
</property>
<component name="Email" class="package.Email">
<property name="Address" column="email_address" type="String">
<meta attribute="use-in-equals">true</meta>
</property>
</component>
...
</class>
I've been writing a method that could give me a List of the net.sf.hibernate.mapping.Property 's for a given class
that make up the buisinesskey (that are used in equals).
One of the first method calls is getClassMapping(Class c) from net.sf.hibernate.cfg.Configuration to get
the persistent class. This works for all classes except the component classes
(EMail, in the above example) where I get null as a return value :(
Is this normal ? Is this a bug ? Am i missing something ?
Thx, in advance
Oliver
|