Refactored packages

This commit is contained in:
Michele Guarnaccia 2020-05-24 11:45:17 +02:00
parent 715147e7dc
commit ab1114fb7d
2 changed files with 4 additions and 5 deletions

View File

@ -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);

View File

@ -1,4 +1,4 @@
package com.baeldung.model;
package com.baeldung.partialupdate.model;
public class CustomerDto {
private long id;