It appears that the MyBatis generator 1.3.5 does not support default values defined with the DB column.
I am using Java and PostgreSQL, and I have many columns that are defined as "not null default xyz". When I insert a new row using MyBatis and do not specify a value for such a column, I get the following error.
ERROR: null value in column "creation_time" violates not-null constraint
MyBatis should be aware that the column has a default value, and thus should accept the null value.
Is this a bug, or a missing feature? If the latter, could it be added. I should think that the scenario is common enough.