diff --git a/pom.xml b/pom.xml index 6f96fe4..b500633 100644 --- a/pom.xml +++ b/pom.xml @@ -11,5 +11,23 @@ consultant-core + + 1.0.2 + 1.18.4 + + + + + javax.persistence + persistence-api + ${persistence.ver} + + + + org.projectlombok + lombok + ${lombok.ver} + + \ No newline at end of file diff --git a/src/main/java/org/sadtech/consultant/dao/NextStage.java b/src/main/java/org/sadtech/consultant/dao/NextStage.java new file mode 100644 index 0000000..9a7947d --- /dev/null +++ b/src/main/java/org/sadtech/consultant/dao/NextStage.java @@ -0,0 +1,14 @@ +package org.sadtech.consultant.dao; + +import lombok.Data; + +import javax.persistence.Entity; + +@Entity +@Data +public class NextStage { + + private long id; + private long idNext; + +} diff --git a/src/main/java/org/sadtech/consultant/dao/SaveStage.java b/src/main/java/org/sadtech/consultant/dao/SaveStage.java new file mode 100644 index 0000000..c80e35e --- /dev/null +++ b/src/main/java/org/sadtech/consultant/dao/SaveStage.java @@ -0,0 +1,16 @@ +package org.sadtech.consultant.dao; + +import lombok.Data; + +import javax.persistence.Entity; +import javax.persistence.Id; + +@Entity +@Data +public class SaveStage { + + @Id + private long id; + private long idStage; + +} diff --git a/src/main/java/org/sadtech/consultant/dao/SocialNetworks.java b/src/main/java/org/sadtech/consultant/dao/SocialNetworks.java new file mode 100644 index 0000000..7dd831a --- /dev/null +++ b/src/main/java/org/sadtech/consultant/dao/SocialNetworks.java @@ -0,0 +1,18 @@ +package org.sadtech.consultant.dao; + +import lombok.Data; + +import javax.persistence.Entity; +import javax.persistence.Id; + +@Data +@Entity +public class SocialNetworks { + + @Id + private long id; + private long idVk; + private long idFacebook; + private long phone; + +} diff --git a/src/main/java/org/sadtech/consultant/dao/Stage.java b/src/main/java/org/sadtech/consultant/dao/Stage.java new file mode 100644 index 0000000..59aa1d7 --- /dev/null +++ b/src/main/java/org/sadtech/consultant/dao/Stage.java @@ -0,0 +1,17 @@ +package org.sadtech.consultant.dao; + +import lombok.Data; + +import javax.persistence.Entity; +import javax.persistence.Id; + +@Entity +@Data +public class Stage { + + @Id + private long id; + private String text; + private String wordKeys; + +} diff --git a/src/main/java/org/sadtech/consultant/dao/User.java b/src/main/java/org/sadtech/consultant/dao/User.java new file mode 100644 index 0000000..cf14046 --- /dev/null +++ b/src/main/java/org/sadtech/consultant/dao/User.java @@ -0,0 +1,24 @@ +package org.sadtech.consultant.dao; + +import lombok.Data; + +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.Id; +import java.util.List; + +@Entity +@Data +public class User { + + @Id + @GeneratedValue + private long id; + private String name; + private String token; + private String lastName; + private String city; + private List socialNetworks; + + +}