-
Notifications
You must be signed in to change notification settings - Fork 371
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
StringArrayType.INSTANCE is not working with a two dimensional String array parameter on PostgreSQL #436
Comments
Check out this test case that shows what's supported since it rund just fine. You can compare it to your use case and see why mine works and yours doesn't. |
Maybe I'm wrong, but your test case is covering the use of a multidimensional array as an entity attribute, not as a query parameter like what I'm aiming for. |
Then, it could be an issue. Unfortunately, I don't have time at the moment to investigate it in my spare time, but thanks to OSS, this could be fixed by anyone who's interested in this. This is what's going to be needed:
Or, if a company is in a hurry and wants this issue to be done sooner than later, then I could try to fix it via consulting. |
@vladmihalcea I will pick this up for resolution |
@priyadarshan85 @AlexisJehan i would like to email you. would you mind help me to resolve some configuration issues. your assistance would be helpful. we could connect via twitter or instagram. |
I sent you an email. |
Sure ..let me know how to connect |
@vladmihalcea I have been trying to compile the project through maven but getting following errors: Cannot resolve Failure to transfer com.sun.istack:istack-commons-runtime:pom:3.0.6 from http://bits.netbeans.org/nexus/content/groups/netbeans was cached in the local repository, resolution will not be reattempted until the update interval of netbeans has elapsed or updates are forced. Original error: Could not transfer artifact com.sun.istack:istack-commons-runtime:pom:3.0.6 from/to netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans): Not authorized Cannot resolve Failure to transfer javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 from http://bits.netbeans.org/nexus/content/groups/netbeans was cached in the local repository, resolution will not be reattempted until the update interval of netbeans has elapsed or updates are forced. Original error: Could not transfer artifact javax.xml.bind:jaxb-api:pom:2.3.0-b161121.1438 from/to netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans): Not authorized Cannot resolve Failure to transfer com.sun.xml.fastinfoset:FastInfoset:pom:1.2.14 from http://bits.netbeans.org/nexus/content/groups/netbeans was cached in the local repository, resolution will not be reattempted until the update interval of netbeans has elapsed or updates are forced. Original error: Could not transfer artifact com.sun.xml.fastinfoset:FastInfoset:pom:1.2.14 from/to netbeans (http://bits.netbeans.org/nexus/content/groups/netbeans): Not authorized Can u pls help here if this is a known issue and there is a workaround available? |
@vladmihalcea Fixed the issue .. problem is that netbeans repo has moved |
The library should not need any istack-common library or NetBeans repository. Try running Maven from the command line instead. Most likely, it's a Maven issue. |
@vladmihalcea
I noticed that unwrap method is not called when setParameter for setting the :param value. In all other cases, while insert of data in DB, unwrap method is been called. I tried different ways to call setParameter but still no avail. Any hints here to further debug this |
@vladmihalcea is it possible to get some guidance here? |
Hibernate ORM core version: 5.6.8.Final
Hibernate Types 55 version: 2.16.2
StringArrayType is expected to work with multidimensional arrays based on the Javadoc, but that isn't the case when used with Hibernate native query parameters and PostgreSQL.
One dimensional array parameter is working as expected:
But two dimensional array parameter isn't working:
The Exception:
Demo:
demo.zip
Thanks having a look.
The text was updated successfully, but these errors were encountered: