Hi everyone,
I defined a simple AO entity called TimePeriod that has two java.sql.Time fields, one for start of the period and one for the end.
When I create a TimePeriod and save it in java, it gets converted into TIMESTAMP in the database. The problem is that when I want to get a Time field of this timeperiod in java, a cast error raises: java.sql.Timestamp cannot be cast to java.sql.Time (I'm guessing this is because java thinks it should be Time but it's actually a Timestamp).
I tried to manually (with SQL) alter the column type and change it to TIME, but after that AO keeps raising this error: can't find type 92 (precision=6) in field END_TIME.
Is there anyway to fix this without having to change the field type in the entity definition?
Thanks!