|
| Re: Problem with @Converter and smallint field [message #639186 is a reply to message #638870] |
Mon, 15 November 2010 09:53   |
James Sutherland Messages: 1844 Registered: July 2009 |
Senior Member |
|
|
Could you include the code for your converter.
You can set the type for the field be defining the Converter's initialize() method and setting the type (or jdbcType) on the field.
i.e.
public void initialize(DatabaseMapping mapping, Session session) {
((DirectToFieldMapping)this.mapping).setFieldClassification( Short.class);
}
James : Wiki : Book : Blog
|
|
|
|
Powered by
FUDForum. Page generated in 0.09256 seconds