We're updating the issue view to help you get more done. 

Do not inject CollectionTracker into entity without collection

Description

I have the following entity

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 @Entity @Getter @Setter public class Pupil { @Id @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQUENCE") @SequenceGenerator(name = "SEQUENCE", sequenceName = "PUPIL_SEQ", allocationSize = 5000) private Long id; @Column private int age; @Column private String name; @Column private LocalDate enrolled; public Pupil() { } }

after instrumentation this entity contains

1 private transient CollectionTracker $$_hibernate_collectionTracker;

which is redundant as entity does not have any collection field.

Environment

None

Status

Assignee

Luis Barreiro

Reporter

Sergei Tsypanov

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

5.2.8

Priority

Minor