[jira] [Commented] (TORQUE-375) Support for java.time API

"Georg Kallidis (Jira)" <[email protected]> Tue, 23 Jun 2026 14:32:00 +0000 (UTC)
Newsgroups gmane.comp.jakarta.turbine.torque.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/TORQUE-375?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18090926#comment-18090926 ] 

Georg Kallidis commented on TORQUE-375:
---------------------------------------

Thanks a lot!! I just tried to compile the patches, but I got incompatible type conversion errors in Torque-tests for the generated BaseDatePk, BaseMulitPk, BaseTimePk, BaseTimestampPk.

In torque-templates ...om/templates/dbObject/base/primaryKeyMethods.vm is unchanged. I would expect statements like
{code:java}
#elseif($columnFieldType == "java.time.LocalDate" 
.. $columnFieldType == "java.time.LocalDateTime" 
.. $columnFieldType == "java.time.LocalTime"){code}
there, mapping to LocalDateKey, LocaleDateTimeKey ..

It might be, that primaryKeyMethods.vm just did not make it into the patch?

Thx again ..

> 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
>
>
> Switch out java.util.Date, replace with the java.time API.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)