Hi,
My Hydrated class has an attribute of a custom type
I have declared it as a Hibernate discriminator.
But I find the discriminator has to be set as 'String'
I want as integer but with that when Hibernate initializes it gives error
Could not format discriminator value to SQL string
Any clues ?
My Hibernate mapping (partial) is as
Code:
<hibernate-mapping>
<class name="equicom.offline.transmission_profile.TransmissionProfile" table="TRANSMISSION_PROFILE" dynamic-update="false" dynamic-insert="false">
<id name="profileID" column="PROFILE_ID" type="integer">
<generator class="native"></generator>
</id>
<discriminator column="PURPOSE" type="integer" />
<property name="description" type="string" update="true" insert="true" column="DESCRIPTION" not-null="false" unique="false" />
<property name="purpose" type="equicom.offline.transmission_profile.TransmissionPurpose" update="false" insert="false" column="PURPOSE" />
I am using Hibernate 2.1, with Oracle