I'm on 3.6.0.Final and have a simple
Code:
public class CustomYesNoType extends YesNoType
{
private static final long serialVersionUID = 1L;
@Override
public String getName()
{
return "customYesNo";
}
@Override
public String objectToSQLString(Boolean value, Dialect dialect) throws Exception
{
return StringType.INSTANCE.objectToSQLString(value.booleanValue() ? "A" : "B", dialect);
}
}
which I use on the entity like
Code:
@TypeDef(name="customYesNoType", typeClass=CustomYesNoType.class)
and
Code:
@Type(type="customYesNoType")
boolean theBoolean
but for some strange reason, the boolean is false, no matter if the field is A or B in the DB. Is the type not picked up or is there some error in the implementation?
Thanks in advance,
Nik