What I think he meant to say XM was in your code, change the property type in Java from String to either a char primitive or Character object:
Code:
<property
name="iswarrant"
type="character"
column="iswarrant"
/>
Code:
class
private char iswarrant;
You cannot map a char value to a string. However, if your code demands that this value be a String, you can change your mapping to:
Code:
<property
name="iswarrant"
type="string"
column="iswarrant"
/>
This is totally valid and will work just fine. I have production code that does exactly this. Generally, you'd be better off using a char value if the database vaule only accepts a single character.
Ryan-