# "SELECT new map()" column java types

**URL:** <https://discourse.hibernate.org/t/select-new-map-column-java-types/10422>\
**Category:** Hibernate ORM\
**Created:** [October 8, 2024, 3:00pm UTC](https://discourse.hibernate.org/t/select-new-map-column-java-types/10422 "2024-10-08T15:00:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilia\_Basin](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/ilia_basin/32/2425_2.png) [@Ilia\_Basin](https://discourse.hibernate.org/u/Ilia_Basin)\
**Post date:** [October 8, 2024, 3:00pm UTC](https://discourse.hibernate.org/t/select-new-map-column-java-types/10422/1 "2024-10-08T15:00:59Z")

</div>

Hi. I bootstrap Hibernate programmatically and I have a java bean “DbLog” having:

```auto
public java.util.Date getChangedDate();
public void setChangedDate(java.util.Date val);

```

When I do HQL: “SELECT new map(changedDate) FROM DbLog”  
the result Map value is of type java.sql.TimeStamp. How to configure Hibernate to use java.util.Date instead?

---

<div class="post-metadata">

**Author:** ![beikov](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/beikov/32/258_2.png) [@beikov](https://discourse.hibernate.org/u/beikov)\
**Post date:** [October 9, 2024, 11:29am UTC](https://discourse.hibernate.org/t/select-new-map-column-java-types/10422/2 "2024-10-09T11:29:13Z")

</div>

What’s the problem? `java.sql.Timestamp` extends `java.util.Date`, so this is fine.
