Skip to content

Commit

Permalink
v2 #1
Browse files Browse the repository at this point in the history
  • Loading branch information
piomin committed Mar 11, 2022
1 parent 866f4f4 commit f32f0b0
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package pl.piomin.samples.springboot.kubernetes.domain;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

@Document(collection = "person")
@Getter
@Setter
@AllArgsConstructor
@NoArgsConstructor
public class PersonV2 {

@Id
private String id;
private String name;
private int age;
private Gender gender;

}

0 comments on commit f32f0b0

Please sign in to comment.