Skip to content
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

Support for java.lang.Short in Hibernate ListArrayType #758

Open
jonghyeon95 opened this issue Dec 17, 2024 · 1 comment · May be fixed by #761
Open

Support for java.lang.Short in Hibernate ListArrayType #758

jonghyeon95 opened this issue Dec 17, 2024 · 1 comment · May be fixed by #761

Comments

@jonghyeon95
Copy link

Hello,

I am using Hibernate 6.5.3.Final with PostgreSQL, and I encountered an issue when trying to map a smallint[] column to a List in my entity. The following code results in the

@Type(ListArrayType.class)
@Column(name = "items", columnDefinition = "smallint[]")
private List<Short> items;

Error:
java.lang.Short is not supported yet!

It seems that ListArrayType does not support Short. Is there a workaround or plans to support Short in the future? Your guidance would be greatly appreciated.

@vladmihalcea
Copy link
Owner

@jonghyeon95 You can add support for it here.

Looking forward to your Pull Request.

@tizba tizba linked a pull request Jan 19, 2025 that will close this issue
tizba added a commit to tizba/hypersistence-utils that referenced this issue Jan 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants