I have to map two components of the same type, but hibernate maps them with the same name! Using Xdoclet, what happens is that I have two identical "component" elements inside my mapping document, so Hibernate throws
Hibernate lazy instantiation problem: Repeated column in mapping for class ... should be mapped with insert="false" update="false": propertyName
Here's the repeated element: (they only differs for the component name, of course, but the property are (and should be, I think) the same!!!)
<component name="normalizedDestination"
class="com.set.costamorena.server.business.data.GISNormalizedAddress"
>
<property
name="latitude"
type="java.lang.Long"
update="true"
insert="true"
column="latitude"
/>
<property
name="longitude"
type="java.lang.Long"
update="true"
insert="true"
column="longitude"
/>
</component>
Any ideas ?
Thanks
Renato
|