Hi All,
I'm using Hibernate 3.3.2.
I'm using the <join> tag to map a component into an entity as follows, where the component is joined from a different table:
Code:
<join table="password">
<key column="user_id" unique="true" not-null="true>
<component class="com.opterus.opscenter.model.common.Password" name="currentPassword">
<property name="password" type="string" column="password"/>
<property name="active" column="active" type="integer"/>
<property name="expireDate" type="integer" column="expire_date"/>
</component>
</join>
This works fine, but is there any way to add a formula to the join where I can add, for instance, a part to the where clause like active=1? The component doesn't take a formula element, which is where I think it needs to be.
Any ideas?