Skip to content

Constructor based java.util.Date throws Exception, expects java.sql.TimeStamp #1240

Closed
@sahil-ag

Description

@sahil-ag

MyBatis version

3.3.1

Database vendor and version

SQL Server 2014

Test case or example project

Immutable POJO's with java.util.Date variables which are initialized using constructors.

Steps to reproduce

Use constructors, select expects java.sql.TimeStamp and doesn't work with java.util.Date

Expected result

Create an object with valid dates

Actual result

Throws exception saying constructor not found with given signature.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions