import org.springframework.transaction.annotation.Transactional;

public class JPAI_Sample {

    @Transactional
    private void writeData() {
        
    }
}

@@ -4,153 +4,1241 @@
 ort 
-org.springframework.transaction.annotation.Transactional;%0A%0Apublic class JPAI_Sample %7B%0A%0A    @Transactional%0A    private void writeData() %7B%0A        
+javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.SequenceGenerator;%0Aimport javax.persistence.Table;%0A%0Aimport org.springframework.transaction.annotation.Transactional;%0A%0Apublic class JPAI_Sample %7B%0A%0A    @Transactional%0A    private void writeData() %7B%0A        %0A    %7D%0A    %0A    @Entity%0A    @Table(name = %22MY_ENTITY%22)%0A    public static class MyEntity %7B%0A        %0A        public Integer id;%0A        %0A        @Id%0A        @SequenceGenerator(name = %22MY_ENTITY_SEQ%22, sequenceName = %22MY_ENTITY_SEQ%22, allocationSize = 100)%0A        @GeneratedValue(generator = %22MY_ENTITY_SEQ%22)%0A        public Integer getId() %7B%0A            return id;%0A        %7D%0A        %0A        public void setId(Integer id) %7B%0A            this.id = id;%0A        %7D%0A        %0A        @Override%0A        public int hashCode() %7B%0A            return id.hashCode();%0A        %7D%0A%0A        @Override%0A        public boolean equals(Object o) %7B%0A            if (!(o instanceof MyEntity)) %7B%0A                return false;%0A            %7D%0A            %0A            MyEntity that = (MyEntity) o;%0A            if (id == null) %7B%0A                return that.id == null;%0A            %7D%0A            %0A            return id.equals(that.id);%0A        %7D
 %0A   

add new bug pattern for JPAI