Remove memberType field entirely to prevent Hibernate duplicate column

Fixkamo-shared-library
Shipped
16 Aprili 2026, 05:29 UTC
Author
Kamo
Commit
283eb0e

The previous fixes (@Transient on field, @Access(AccessType.FIELD) on class) were insufficient. Bytecode inspection revealed Lombok's @Setter generated a public setMemberType() method. Paired with the manual getMemberType() getter, Hibernate 6 treated memberType as a full persistent property (getter+setter pair), mapping it to column member_type — duplicating the @DiscriminatorColumn and pushing security_level into the member_team_member projection. Removing the field entirely eliminates the Lombok-generated setter. Only the @Transient getMemberType() computation method remains.

All changes

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei