Joined: Fri Jan 14, 2005 1:25 am Posts: 2 Location: Los Angeles
|
I have property defined by the xdoclet tags:
/**
* @hibernate.property
* type="com.zetools.wuwi.hibernate.usertype.PartnerStatusUserType"
* length="4"
* not-null="true"
* @return Returns the status.
*/
which generates appropriate xml:
<property
name="status" type="com.zetools.wuwi.hibernate.usertype.PartnerStatusUserType"
update="true"
insert="true"
access="property"
column="status"
length="4"
not-null="true"
/>
The PartnerStatusUserType is of Types.CHAR.
Generating the schema results in the type being char(1)
instead of char(4). We would prefer to use char over varchar
for this instance. I am using
net.sf.hibernate.tool.hbm2ddl.SchemaExportTask to generate the
Oracle schema.
How do we get char(4) into the generated Oracle schema?
Any clues or hints would be greatly appreciated.
Regards,
Earl
|
|