[
https://issues.apache.org/jira/browse/TORQUE-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18091566#comment-18091566
]
Georg Kallidis commented on TORQUE-375:
---------------------------------------
Schema alignment is +1 on my side.
Concerning removal of java.util.Date: Should we just, as a first step add a
deprecated tag, where possible and suggest / link to migration? Integrations
may have still setter/getters to this old class?
I tested three patches (for default release test suite), currently getting
these errors at the end (try to resolve ..). Thx a lot for your patches! We
continue to understand the changes :)
{code:java}
[ERROR] Failures:
[ERROR] DefaultValuesFromDatabaseTest.testJavaDefault:92 expected: <null> but
was: <2010-09-08>
[ERROR] Errors:
[ERROR] DataTest.testMultiplePk:140 ┬╗ Torque java.sql.SQLDataException: An
attempt was made to get a data value of type 'TIMESTAMP' from a data value of
type 'java.time.LocalDateTime'.
[ERROR] DefaultValuesFromDatabaseTest.testCurrentDateAsDefault:275 ┬╗
DateTimeParse Text 'CURRENT_DATE' could not be parsed at index 0
[ERROR] DefaultValuesFromDatabaseTest.testCurrentTimeAsDefault:308 ┬╗
DateTimeParse Text 'CURRENT_TIME' could not be parsed at index 0
[ERROR] DefaultValuesFromDatabaseTest.testCurrentTimestampAsDefault:345 ┬╗
DateTimeParse Text 'CURRENT_TIMESTAMP' could not be parsed at index 0
[ERROR] DefaultValuesFromDatabaseTest.testNewObjectChangedValue:173 ┬╗ Torque
java.sql.SQLDataException: An attempt was made to get a data value of type
'DATE' from a data value of type 'java.time.LocalDate'.
[ERROR]
DefaultValuesFromDatabaseTest.testNotNewObjectSavesUnchangedValues:219 ┬╗
Runtime org.apache.torque.TorqueException: java.sql.SQLDataException: An
attempt was made to get a data value of type 'java.time.LocalDate' from a data
value of type 'DATE'.
[ERROR] RetrieveByPkTest.testRetrieveByNonExistingPkMultiplePKs:107 ┬╗ Torque
java.sql.SQLDataException: An attempt was made to get a data value of type
'TIMESTAMP' from a data value of type 'java.time.LocalDateTime'.{code}
> Support for java.time API
> -------------------------
>
> Key: TORQUE-375
> URL: https://issues.apache.org/jira/browse/TORQUE-375
> Project: Torque
> Issue Type: Improvement
> Affects Versions: 7.1
> Reporter: Graham Leggett
> Priority: Major
> Attachments: torque8-javatime1.patch, torque8-javatime2.patch,
> torque8-javatime3.patch, torque8-javatime4.patch
>
>
> Switch out java.util.Date, replace with the java.time API.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]