Creating Timestamp Column With Ormlite
I have a column like this: @DatabaseField(dataType = DataType.TIME_STAMP) Timestamp time; When I create the DAO I get this exception: java.lang.IllegalArgumentException: Field cla
Solution 1:
Support for java.sql.Timestamp
and java.sql.Date
fields was added in ORMLite version 4.41 but they had an associated bug. These were fixed in version 4.42.
In the meantime, I think you might be able to fix it by removing the dataType
specifier. I think that it should be able to auto-detect the type. The problem is when you are specifying the data-type.
// no dataType specified@DatabaseField
Timestamp time;
Post a Comment for "Creating Timestamp Column With Ormlite"