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.Entity; | ||||||
| import javax.persistence.GeneratedValue; | import javax.persistence.GeneratedValue; | ||||||
| @ -8,15 +8,14 @@ import javax.persistence.Id; | |||||||
| @Entity | @Entity | ||||||
| public class Customer { | public class Customer { | ||||||
| 
 | 
 | ||||||
|     @Id @GeneratedValue(strategy = GenerationType.IDENTITY) |     @Id  | ||||||
|  |     @GeneratedValue(strategy = GenerationType.IDENTITY) | ||||||
|     public long id; |     public long id; | ||||||
|     public String name; |     public String name; | ||||||
|     public String phone; |     public String phone; | ||||||
|     //... |     //... | ||||||
|     public String phone99; |     public String phone99; | ||||||
|      |      | ||||||
|     public Customer() {} |  | ||||||
|      |  | ||||||
|     @Override public String toString() { |     @Override public String toString() { | ||||||
|         return String.format("Customer %s, Phone: %s",  |         return String.format("Customer %s, Phone: %s",  | ||||||
|                 this.name, this.phone); |                 this.name, this.phone); | ||||||
|  | |||||||
| @ -1,4 +1,4 @@ | |||||||
| package com.baeldung.model; | package com.baeldung.partialupdate.model; | ||||||
| 
 | 
 | ||||||
| public class CustomerDto { | public class CustomerDto { | ||||||
|     private long id; |     private long id; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user