diff --git a/.idea/jpa-buddy.xml b/.idea/jpa-buddy.xml new file mode 100644 index 000000000..d08f40080 --- /dev/null +++ b/.idea/jpa-buddy.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/runConfigurations.xml b/.idea/runConfigurations.xml new file mode 100644 index 000000000..797acea53 --- /dev/null +++ b/.idea/runConfigurations.xml @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/src/main/java/com/example/demo/models/Channel.java b/src/main/java/com/example/demo/models/Channel.java index 83ff1c997..36bf7e819 100644 --- a/src/main/java/com/example/demo/models/Channel.java +++ b/src/main/java/com/example/demo/models/Channel.java @@ -1,4 +1,50 @@ package com.example.demo.models; +import javax.persistence.Entity; +import javax.persistence.GeneratedValue; +import javax.persistence.GenerationType; +import javax.persistence.Id; +import java.util.List; + +@Entity public class Channel { + + @Id + @GeneratedValue(strategy = GenerationType.AUTO) + private Long id; + private String name; + private List profileList; + private List messages; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public List getProfileList() { + return profileList; + } + + public void setProfileList(List profileList) { + this.profileList = profileList; + } + + public List getMessages() { + return messages; + } + + public void setMessages(List messages) { + this.messages = messages; + } } diff --git a/src/main/java/com/example/demo/service/ChannelService.java b/src/main/java/com/example/demo/service/ChannelService.java index a3c42224a..51a851ae6 100644 --- a/src/main/java/com/example/demo/service/ChannelService.java +++ b/src/main/java/com/example/demo/service/ChannelService.java @@ -1,4 +1,5 @@ package com.example.demo.service; public class ChannelService { + }