I digged into the code and there is something strange. In both cases, for the Entity#conlusion and Entity_audit#conclusion no Column#setSqlTypeName is set (the setter is called with NULL). When the Column#getSqlTypeName getter is called, the sql type is detected using the ddlTypeRegistry. There are different results. For the Entity class:
But for the Entity_audit class, the ddlTypeRegistry returns varchar:
But the issue is not here, the sqlTypeCode was set before. When BasicValue#resolveColumn is called, the resolution differs. For the Entity class, the resolution is:
And for the Entity_audit class, the resolution is:
I’m still searching why the NamedBasicTypeResolution has the wrong type. |