[hibernate-dev] hibernate.id.optimizer.pooled.preferred=hilo or legacy-hilo

2019-08-27 Thread Gail Badner
Hi, The documentation for hibernate.id.optimizer.pooled.preferred says the following: hilo; legacy-hilo Define a custom algorithm for generating pools of values based on a single value from a table or sequence. These optimizers are not recommended for use. They are maintained (and mentioned)

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

2019-08-27 Thread Gail Badner
Please see below... On Tue, Aug 27, 2019 at 8:00 PM Jan-Willem Gmelig Meyling < jan-wil...@youngmediaexperts.nl> wrote: > 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

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

2019-08-27 Thread Steve Ebersole
Generally speaking an `#equals` method would not allow subclasses to match. For entity mappings specifically I this it is generally considered kosher to allow subclass matching in `#equals`. Interestingly, when generating `#equals` overrides through IntelliJ it even asks specifically whether