Re: [hibernate-dev] Bidirectional one-to-one, both sides are owners, using @PrimaryKeyJoinColumn

2020-01-15 Thread Jan-Willem Gmelig Meyling
Hi Gail, The mapping is IMO invalid. For removal etc. to work properly, the direction needs to be deducible. However, I’ve observed this mapping as a workaround for supporting lazy loading on either side of the association, prior to our fixes in 5.4 with HHH-12842 [1] . The mapping works in

Re: [hibernate-dev] Composite IDs with a null property/field

2019-12-17 Thread Jan-Willem Gmelig Meyling
PostgreSQL doesn’t allow nullable columns in a compound primary key. It allows a unique constraint on a nullable column, but then it happily inserts the two values below - without constraint violation error. I too have stumbled upon the need for nullable identifiers in Hibernate however. Mostly

Re: [hibernate-dev] Entity implementation of equals()

2019-08-27 Thread Jan-Willem Gmelig Meyling
I tend to use this.getClass().isInstance(o) and this.getClass().cast(o) which works even in a mapped super class on most occasions. (Assuming that the proxy delegates equals to a concrete target). Jan-Willem > Op 27 aug. 2019 om 22:29 heeft Steve Ebersole het > volgende geschreven: > > Gen

Re: [hibernate-dev] Implement UserCollectionType for non-Collection types such as Guava's Multimap

2017-05-01 Thread Jan-Willem Gmelig Meyling
SPI to hopefully address some shortcomings, > some of which you bring up. I hope you add your input to some of those > discussion threads on this list about that redesign. > > > On Mon, Apr 24, 2017 at 2:02 PM Jan-Willem Gmelig Meyling > mailto:jan-wil...@youngmediaexperts

[hibernate-dev] Implement UserCollectionType for non-Collection types such as Guava's Multimap

2017-04-24 Thread Jan-Willem Gmelig Meyling
Hi everyone, Out of curiosity I’ve tried to implement a UserCollectionType for Guava’s Multimap [1] based on this [2] article thats doing a similar job for Apache’s MultiMap. Doing so I’ve stumbled upon two issues, for which I’d like to receive some feedback. As far as I can see, the UserColle

[hibernate-dev] Add entity with InheritanceType.JOINED to native query

2016-09-06 Thread Jan-Willem Gmelig Meyling
Hi Hibernate developers, I stumbled upon an issue today and I am wondering whether the following would be possible using Hibernate, and if not, whether such could actually be implemented, or if I actually hit a boundary of the alias injection. My problem has to do with trying to map the result