Skip to content

Include Java 8 time classes in the Entity Class Creation Wizard #3755

@cpramirez

Description

@cpramirez

Description

The Wizard that creates the Entity Classes from Database uses the java.util.Date by default.

It would good if could be updated to work with the more modern Java8 Time classes, basically because they are the updated versions of it and have less problems with the handling of the time-zones and conversions of them when retrieving/storing the information in the database.

Use case/motivation

I do not know how difficult would be, but probably the best option would be to allow the user to choose if they want to use java.util.Date or java.time classes, in a similar way to how they choose if they want to use Collection, Set or List for the relationships.

I want to remove the uses of Date from my projects and it is time consuming have to review all new entities to replace it for its best equivalent, but that is my particular case. Other people may need to use it for compatibility reasons, for example.

Related issues

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Contribution welcomeAn issue or feature not currently being worked on, but a contribution would be welcomed!Java EE/Jakarta EE[ci] enable enterprise jobkind:featureA feature request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions