Detecting Problems in the Database Access Code of Large Scale Systems
An industrial Experience Report
1
Detecting Problems in the Database Access Code of Large Scale - - PowerPoint PPT Presentation
Detecting Problems in the Database Access Code of Large Scale Systems An industrial Experience Report 1 Existing static analysis tools focus on language-related problems PMD Google error-prone Coverity FindBugs Facebook Infer However,
1
2
Coverity PMD Google error-prone Facebook Infer FindBugs
3
4
5
6
@Entity @Table(name = “user”) @DynamicUpdate public class User{ @Column(name=“id”) private int id; @Column(name=“name”) String userName; @OneToMany(fetch=FetchType.EAGER) List<Team> teams; public void setName(String n){ userName = n; } … other getter and setter methods User.java
7
8
9
10
11
12
13
14
15
16
@Transaction(Propo gation.REQUIRED) @EAGER
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31