---
title: "Comment by Oscar Fanchin on \"Hibernate 6: custom SQL functions in Spring Data JPA repositories\" | Hashnode"
description: "Hi, I have a custom function that returns a table, I would like to treat the return value as a list of complex objects, do you know if it is possible to registe"
url: "https://hashnode.com/posts/hibernate-6-custom-functions/6528e89bfade2f3801c64e31/comment/672313e1ec30fdacd1172d41"
---

[Discussion](https://hashnode.com/posts/hibernate-6-custom-functions/6528e89bfade2f3801c64e31)

Comment [Hibernate 6: custom SQL functions in Spring Data JPA repositories](https://hashnode.com/posts/hibernate-6-custom-functions/6528e89bfade2f3801c64e31)

[Oscar Fanchin](https://hashnode.com/@Nexus061)

[Oct 31, 2024](https://hashnode.com/posts/hibernate-6-custom-functions/6528e89bfade2f3801c64e31/comment/672313e1ec30fdacd1172d41)

Hi, I have a custom function that returns a table, I would like to treat the return value as a list of complex objects, do you know if it is possible to register it?
