Beginner |
|
Joined: Fri Feb 20, 2004 6:15 pm Posts: 38
|
Hello,
I'm stuck trying to produce a mapping that allows:
<map name="photoTable" table="photos" lazy="true">
<key column="int_track_num"/>
<index column="photo_type" type="string"/>
<composite-element class="com.PhotographImpl">
<property name="type" column="photo_type" access="field" type="string"/>
Notice that the index element maps to the same column as a property of the component that is the value of the map. Hibernate doesn't allow this.
My code is basically indexing the object from the type off of the mapped component.
Is there any way to accomplish this without changing my code or schema?
Thanks
|
|