File tree Expand file tree Collapse file tree 4 files changed +12
-12
lines changed
src/main/java/com/cockroachlabs/model Expand file tree Collapse file tree 4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ repositories {
1212}
1313
1414dependencies {
15- compile ' org.hibernate:hibernate-core:5.2.0 .Final'
15+ compile ' org.hibernate:hibernate-core:5.2.4 .Final'
1616 compile ' org.postgresql:postgresql:9.4.1208'
1717
1818 testCompile group : ' junit' , name : ' junit' , version : ' 4.11'
Original file line number Diff line number Diff line change @@ -8,10 +8,10 @@ public class Customer {
88
99 @ Id
1010 @ GeneratedValue (strategy =GenerationType .IDENTITY )
11- @ Column (name ="ID " , nullable =false , unique =true )
11+ @ Column (name ="id " , nullable =false , unique =true )
1212 private long id ;
1313
14- @ Column (name ="NAME " )
14+ @ Column (name ="name " )
1515 private String name ;
1616
1717 public long getId () {
Original file line number Diff line number Diff line change @@ -10,20 +10,20 @@ public class Order {
1010
1111 @ Id
1212 @ GeneratedValue (strategy =GenerationType .IDENTITY )
13- @ Column (name ="ID " , nullable =false , unique =true )
13+ @ Column (name ="id " , nullable =false , unique =true )
1414 private long id ;
1515
16- @ Column (name ="SUBTOTAL " , precision =18 , scale =2 )
16+ @ Column (name ="subtotal " , precision =18 , scale =2 )
1717 private BigDecimal subtotal ;
1818
1919 @ ManyToOne
20- @ JoinColumn (name ="CUSTOMER_ID " )
20+ @ JoinColumn (name ="customer_id " )
2121 private Customer customer ;
2222
2323 @ ManyToMany ()
24- @ JoinTable (name ="PRODUCT_ORDERS " ,
25- joinColumns =@ JoinColumn (name ="ORDER_ID " ),
26- inverseJoinColumns =@ JoinColumn (name ="PRODUCT_ID " ))
24+ @ JoinTable (name ="product_orders " ,
25+ joinColumns =@ JoinColumn (name ="order_id " ),
26+ inverseJoinColumns =@ JoinColumn (name ="product_id " ))
2727 private Set <Product > products ;
2828
2929 public long getId () {
Original file line number Diff line number Diff line change @@ -10,13 +10,13 @@ public class Product {
1010
1111 @ Id
1212 @ GeneratedValue (strategy =GenerationType .IDENTITY )
13- @ Column (name ="ID " , nullable =false , unique =true )
13+ @ Column (name ="id " , nullable =false , unique =true )
1414 private long id ;
1515
16- @ Column (name ="NAME " )
16+ @ Column (name ="name " )
1717 private String name ;
1818
19- @ Column (name ="PRODUCT " , precision =18 , scale =2 )
19+ @ Column (name ="product " , precision =18 , scale =2 )
2020 private BigDecimal product ;
2121
2222 @ ManyToMany (cascade =CascadeType .ALL , mappedBy ="products" )
You can’t perform that action at this time.
0 commit comments