Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Gail Badner
I've created https://hibernate.atlassian.net/browse/HHH-13776. Thanks! Gail On Tue, Dec 10, 2019 at 1:30 PM Steve Ebersole wrote: > Actually I was thinking of @EmbeddedId, but you were asking about @IdClass. > > I think (2) sounds more natural. > > > On Tue, Dec 10, 2019 at 3:12 PM Steve Ebers

Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Steve Ebersole
Actually I was thinking of @EmbeddedId, but you were asking about @IdClass. I think (2) sounds more natural. On Tue, Dec 10, 2019 at 3:12 PM Steve Ebersole wrote: > To me this is perfectly consistent with how inheritance works in entity > hierarchies. Unless a super type is marked with @Entit

Re: [hibernate-dev] IdClass superclasses

2019-12-10 Thread Steve Ebersole
To me this is perfectly consistent with how inheritance works in entity hierarchies. Unless a super type is marked with @Entity or @MappedSuperclass, the "attributes" defined on that specific class are not picked up. Maybe I'm misunderstanding you? On Mon, Dec 9, 2019 at 1:58 PM Gail Badner wro

[hibernate-dev] IdClass superclasses

2019-12-09 Thread Gail Badner
Hi, Suppose we have the following: public class CompositeKey implements Serializable { private Long id1; private Long id2; public CompositeKey(Long id1, Long id2) { super(); this.id1 = id1; this.id2 = id2; } ... } public class InheritedKey extends CompositeKey { private