package urteam.news;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import com.fasterxml.jackson.annotation.JsonView;

import urteam.community.Community;
import urteam.community.Community.BasicCommunity;

@Entity

public class News {
	
	
	public interface BasicNews{}
	
	
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@JsonView(BasicNews.class)
	private long id;
	@JsonView(BasicNews.class)
	private String title;
	@JsonView(BasicNews.class)
	private String text;
	
		
	public News(String title, String text){
		this.title = title;
		this.text = text;
		
	}
	
	public News(){
		
	}
	
}
@@ -13,17 +13,19 @@
 am.news;
-%0A
+%0D%0A%0D
 %0Aimport 
@@ -45,24 +45,25 @@
 ence.Entity;
+%0D
 %0Aimport java
@@ -91,16 +91,17 @@
 edValue;
+%0D
 %0Aimport 
@@ -133,16 +133,17 @@
 ionType;
+%0D
 %0Aimport 
@@ -167,45 +167,11 @@
 .Id;
-%0Aimport javax.persistence.ManyToOne;%0A
+%0D%0A%0D
 %0Aimp
@@ -220,103 +220,19 @@
 iew;
-%0A%0Aimport urteam.community.Community;%0Aimport urteam.community.Community.BasicCommunity;%0A
+%0D%0A%0D
 %0A@Entity
 %0A%0Apu
@@ -227,17 +227,19 @@
 %0A@Entity
-%0A
+%0D%0A%0D
 %0Apublic 
@@ -250,20 +250,23 @@
 s News %7B
+%0D
 %0A%09
+%0D
 %0A%09
+%0D
 %0A%09public
@@ -291,17 +291,21 @@
 ws%7B%7D
+%0D
 %0A%09
+%0D
 %0A%09
+%0D
 %0A%09@Id
+%0D
 %0A%09@G
@@ -349,16 +349,17 @@
 pe.AUTO)
+%0D
 %0A%09@JsonV
@@ -370,32 +370,33 @@
 BasicNews.class)
+%0D
 %0A%09private long i
@@ -397,16 +397,17 @@
 long id;
+%0D
 %0A%09@JsonV
@@ -418,32 +418,33 @@
 BasicNews.class)
+%0D
 %0A%09private String
@@ -450,16 +450,17 @@
 g title;
+%0D
 %0A%09@JsonV
@@ -479,16 +479,17 @@
 s.class)
+%0D
 %0A%09privat
@@ -506,13 +506,16 @@
 ext;
+%0D
 %0A%09
+%0D
 %0A%09%09
+%0D
 %0A%09pu
@@ -551,16 +551,17 @@
 g text)%7B
+%0D
 %0A%09%09this.
@@ -574,16 +574,17 @@
 = title;
+%0D
 %0A%09%09this.
@@ -595,24 +595,28 @@
  = text;
+%0D
 %0A%09%09
+%0D
 %0A%09%7D
+%0D
 %0A%09
+%0D
 %0A%09public
@@ -627,14 +627,18 @@
 s()%7B
+%0D
 %0A%09%09
+%0D
 %0A%09%7D
+%0D
 %0A%09
+%0D
 %0A%7D

delete useless imports