Support for HashSet<T> properties?
See original GitHub issueLasciate Ogni Speranza, Voi Ch’entrate
This thread is a wild ride. You’ve been warned.
For my use case, a HashSet<long>
property is preferable to List<long>
, but it seems even though most other collections get mapped to array columns in Postgres without issue, HashSet<T>
does not.
Is there any chance that it’ll be supported in the future? And, for now, is there any way I can tell Npg to treat it as a List<T>
?
Issue Analytics
- State:
- Created 2 years ago
- Comments:24 (8 by maintainers)
Top Results From Across the Web
HashSet in Java
Java HashSet class implements the Set interface, backed by a hash table which is actually a HashMap instance. No guarantee is made as...
Read more >HashSet (Java Platform SE 7 )
Constructs a new set containing the elements in the specified collection. The HashMap is created with default load factor (0.75) and an initial...
Read more >HashSet in Java - Scaler Topics
Java HashSet Features · It allows storing only one null value. · The elements are stored using the hashing mechanism. · HashSet class...
Read more >HashSet in Java
HashSet stores the elements by using a mechanism called hashing. · HashSet contains unique elements only. · HashSet allows null value. · HashSet...
Read more >A Guide to HashSet in Java
HashSet is one of the fundamental data structures in the Java Collections API. Let's recall the most important aspects of this implementation:.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@Atulin the timestamp errors are due to a big change that was introduced in 6.0.0-rc.1. In a nutshell, the provider now strictly maps UTC DateTimes to
timestamp with time zone
and Local/Unspecified DateTimes totimestamp without time zone
; it also no longer allows you to mix these two types (e.g. by comparing them).See the release notes for more details. In any case, this shouldn’t be related to your HashSet work above
Aight, not as scary as I thought, it all boils down to
it would seem.
But now I’ve no clue how to even use this thing. I thought this is going to be fine
but it seems not, it wants me to use a
long[]
array somewhere there for some godforsaken reason