# Replacement of NTextType for Hibernate 6 for registering output parameters for storedprocedurequeries

**URL:** <https://discourse.hibernate.org/t/replacement-of-ntexttype-for-hibernate-6-for-registering-output-parameters-for-storedprocedurequeries/9684>\
**Category:** Hibernate ORM\
**Created:** [June 3, 2024, 7:28am UTC](https://discourse.hibernate.org/t/replacement-of-ntexttype-for-hibernate-6-for-registering-output-parameters-for-storedprocedurequeries/9684 "2024-06-03T07:28:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Cary\_Q](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/cary_q/32/3258_2.png) [@Cary\_Q](https://discourse.hibernate.org/u/Cary_Q)\
**Post date:** [June 3, 2024, 7:28am UTC](https://discourse.hibernate.org/t/replacement-of-ntexttype-for-hibernate-6-for-registering-output-parameters-for-storedprocedurequeries/9684/1 "2024-06-03T07:28:54Z")

</div>

Currently facing an issue with hibernate 6 where nvarchar(max) gets truncated at around ~7500 characters. It was solved in the older version of Hibernate by using NTextType.class as the type in registerStoredProcedureParameter. Thanks

---

<div class="post-metadata">

**Author:** ![Cary\_Q](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.hibernate.org/cary_q/32/3258_2.png) [@Cary\_Q](https://discourse.hibernate.org/u/Cary_Q)\
**Post date:** [June 3, 2024, 8:15am UTC](https://discourse.hibernate.org/t/replacement-of-ntexttype-for-hibernate-6-for-registering-output-parameters-for-storedprocedurequeries/9684/2 "2024-06-03T08:15:09Z")

</div>

Solved. Used StandardBasicTypes.NTEXT as the identifier instead.
