Refactored packages
This commit is contained in:
parent
715147e7dc
commit
ab1114fb7d
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.model;
|
||||
package com.baeldung.partialupdate.model;
|
||||
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
|
@ -8,15 +8,14 @@ import javax.persistence.Id;
|
|||
@Entity
|
||||
public class Customer {
|
||||
|
||||
@Id @GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
public long id;
|
||||
public String name;
|
||||
public String phone;
|
||||
//...
|
||||
public String phone99;
|
||||
|
||||
public Customer() {}
|
||||
|
||||
@Override public String toString() {
|
||||
return String.format("Customer %s, Phone: %s",
|
||||
this.name, this.phone);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
package com.baeldung.model;
|
||||
package com.baeldung.partialupdate.model;
|
||||
|
||||
public class CustomerDto {
|
||||
private long id;
|
||||
|
|
Loading…
Reference in New Issue