Skip to content

Commit b0256fc

Browse files
authoredOct 29, 2020
Merge pull request #33 from yelken/developer
Entrega das versões da CAEMA
2 parents 4ba7c1c + 9f6c0ea commit b0256fc

File tree

10 files changed

+531
-1
lines changed

10 files changed

+531
-1
lines changed
 

‎src/main/java/com/example/crud/model/Bengali.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import java.util.Date;
1111

1212
@Entity
13-
@Table(name = "notes")
13+
@Table(name = "bengali")
1414
@EntityListeners(AuditingEntityListener.class)
1515
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
1616
allowGetters = true)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "Coalas")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Coala {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@NotBlank
26+
private String content;
27+
28+
@Column(nullable = false, updatable = false)
29+
@Temporal(TemporalType.TIMESTAMP)
30+
@CreatedDate
31+
private Date createdAt;
32+
33+
@Column(nullable = false)
34+
@Temporal(TemporalType.TIMESTAMP)
35+
@LastModifiedDate
36+
private Date updatedAt;
37+
38+
public Long getId() {
39+
return id;
40+
}
41+
42+
public void setId(Long id) {
43+
this.id = id;
44+
}
45+
46+
public String getTitle() {
47+
return title;
48+
}
49+
50+
public void setTitle(String title) {
51+
this.title = title;
52+
}
53+
54+
public String getContent() {
55+
return content;
56+
}
57+
58+
public void setContent(String content) {
59+
this.content = content;
60+
}
61+
62+
public Date getCreatedAt() {
63+
return createdAt;
64+
}
65+
66+
public void setCreatedAt(Date createdAt) {
67+
this.createdAt = createdAt;
68+
}
69+
70+
public Date getUpdatedAt() {
71+
return updatedAt;
72+
}
73+
74+
public void setUpdatedAt(Date updatedAt) {
75+
this.updatedAt = updatedAt;
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package main.java.com.example.crud.model;
2+
3+
public class Coccinellidae implements java.io.Serializable {
4+
5+
private static final long serialVersionUID = 1L;
6+
7+
private Integer id;
8+
private String nome;
9+
10+
public Coccinellidae() {}
11+
12+
public Coccinellidae(Integer id, String nome) {
13+
this.id = id;
14+
this.nome = nome;
15+
}
16+
17+
public void setId(Integer id) {
18+
this.id = id;
19+
}
20+
21+
public Integer getId() {
22+
return id;
23+
}
24+
25+
public void setNome(String nome) {
26+
this.nome = nome;
27+
}
28+
29+
public String getNome() {
30+
return nome;
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "notes")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Note {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@NotBlank
26+
private String content;
27+
28+
@Column(nullable = false, updatable = false)
29+
@Temporal(TemporalType.TIMESTAMP)
30+
@CreatedDate
31+
private Date createdAt;
32+
33+
@Column(nullable = false)
34+
@Temporal(TemporalType.TIMESTAMP)
35+
@LastModifiedDate
36+
private Date updatedAt;
37+
38+
public Long getId() {
39+
return id;
40+
}
41+
42+
public void setId(Long id) {
43+
this.id = id;
44+
}
45+
46+
public String getTitle() {
47+
return title;
48+
}
49+
50+
public void setTitle(String title) {
51+
this.title = title;
52+
}
53+
54+
public String getContent() {
55+
return content;
56+
}
57+
58+
public void setContent(String content) {
59+
this.content = content;
60+
}
61+
62+
public Date getCreatedAt() {
63+
return createdAt;
64+
}
65+
66+
public void setCreatedAt(Date createdAt) {
67+
this.createdAt = createdAt;
68+
}
69+
70+
public Date getUpdatedAt() {
71+
return updatedAt;
72+
}
73+
74+
public void setUpdatedAt(Date updatedAt) {
75+
this.updatedAt = updatedAt;
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "notes")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Note {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@NotBlank
26+
private String content;
27+
28+
@Column(nullable = false, updatable = false)
29+
@Temporal(TemporalType.TIMESTAMP)
30+
@CreatedDate
31+
private Date createdAt;
32+
33+
@Column(nullable = false)
34+
@Temporal(TemporalType.TIMESTAMP)
35+
@LastModifiedDate
36+
private Date updatedAt;
37+
38+
public Long getId() {
39+
return id;
40+
}
41+
42+
public void setId(Long id) {
43+
this.id = id;
44+
}
45+
46+
public String getTitle() {
47+
return title;
48+
}
49+
50+
public void setTitle(String title) {
51+
this.title = title;
52+
}
53+
54+
public String getContent() {
55+
return content;
56+
}
57+
58+
public void setContent(String content) {
59+
this.content = content;
60+
}
61+
62+
public Date getCreatedAt() {
63+
return createdAt;
64+
}
65+
66+
public void setCreatedAt(Date createdAt) {
67+
this.createdAt = createdAt;
68+
}
69+
70+
public Date getUpdatedAt() {
71+
return updatedAt;
72+
}
73+
74+
public void setUpdatedAt(Date updatedAt) {
75+
this.updatedAt = updatedAt;
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "notes")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Jararaca {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@NotBlank
26+
private String content;
27+
28+
@Column(nullable = false, updatable = false)
29+
@Temporal(TemporalType.TIMESTAMP)
30+
@CreatedDate
31+
private Date createdAt;
32+
33+
@Column(nullable = false)
34+
@Temporal(TemporalType.TIMESTAMP)
35+
@LastModifiedDate
36+
private Date updatedAt;
37+
38+
public Long getId() {
39+
return id;
40+
}
41+
42+
public void setId(Long id) {
43+
this.id = id;
44+
}
45+
46+
public String getTitle() {
47+
return title;
48+
}
49+
50+
public void setTitle(String title) {
51+
this.title = title;
52+
}
53+
54+
public String getContent() {
55+
return content;
56+
}
57+
58+
public void setContent(String content) {
59+
this.content = content;
60+
}
61+
62+
public Date getCreatedAt() {
63+
return createdAt;
64+
}
65+
66+
public void setCreatedAt(Date createdAt) {
67+
this.createdAt = createdAt;
68+
}
69+
70+
public Date getUpdatedAt() {
71+
return updatedAt;
72+
}
73+
74+
public void setUpdatedAt(Date updatedAt) {
75+
this.updatedAt = updatedAt;
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "notes")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Note {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@NotBlank
26+
private String content;
27+
28+
@Column(nullable = false, updatable = false)
29+
@Temporal(TemporalType.TIMESTAMP)
30+
@CreatedDate
31+
private Date createdAt;
32+
33+
@Column(nullable = false)
34+
@Temporal(TemporalType.TIMESTAMP)
35+
@LastModifiedDate
36+
private Date updatedAt;
37+
38+
public Long getId() {
39+
return id;
40+
}
41+
42+
public void setId(Long id) {
43+
this.id = id;
44+
}
45+
46+
public String getTitle() {
47+
return title;
48+
}
49+
50+
public void setTitle(String title) {
51+
this.title = title;
52+
}
53+
54+
public String getContent() {
55+
return content;
56+
}
57+
58+
public void setContent(String content) {
59+
this.content = content;
60+
}
61+
62+
public Date getCreatedAt() {
63+
return createdAt;
64+
}
65+
66+
public void setCreatedAt(Date createdAt) {
67+
this.createdAt = createdAt;
68+
}
69+
70+
public Date getUpdatedAt() {
71+
return updatedAt;
72+
}
73+
74+
public void setUpdatedAt(Date updatedAt) {
75+
this.updatedAt = updatedAt;
76+
}
77+
78+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
package com.example.crud.model;
2+
3+
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
4+
import org.springframework.data.annotation.CreatedDate;
5+
import org.springframework.data.annotation.LastModifiedDate;
6+
import org.springframework.data.jpa.domain.support.AuditingEntityListener;
7+
8+
import javax.persistence.*;
9+
import javax.validation.constraints.NotBlank;
10+
import java.util.Date;
11+
12+
@Entity
13+
@Table(name = "lulas")
14+
@EntityListeners(AuditingEntityListener.class)
15+
@JsonIgnoreProperties(value = {"createdAt", "updatedAt"},
16+
allowGetters = true)
17+
public class Lula {
18+
@Id
19+
@GeneratedValue(strategy = GenerationType.IDENTITY)
20+
private Long id;
21+
22+
@NotBlank
23+
private String title;
24+
25+
@Column(nullable = false, updatable = false)
26+
@Temporal(TemporalType.TIMESTAMP)
27+
@CreatedDate
28+
private Date createdAt;
29+
30+
@Column(nullable = false)
31+
@Temporal(TemporalType.TIMESTAMP)
32+
@LastModifiedDate
33+
private Date updatedAt;
34+
35+
public Long getId() {
36+
return id;
37+
}
38+
39+
public void setId(Long id) {
40+
this.id = id;
41+
}
42+
43+
public String getTitle() {
44+
return title;
45+
}
46+
47+
public void setTitle(String title) {
48+
this.title = title;
49+
}
50+
51+
public Date getCreatedAt() {
52+
return createdAt;
53+
}
54+
55+
public void setCreatedAt(Date createdAt) {
56+
this.createdAt = createdAt;
57+
}
58+
59+
public Date getUpdatedAt() {
60+
return updatedAt;
61+
}
62+
63+
public void setUpdatedAt(Date updatedAt) {
64+
this.updatedAt = updatedAt;
65+
}
66+
67+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package main.java.com.example.crud.model;
2+
3+
public class Pato implements java.io.Serializable {
4+
5+
private static final long serialVersionUID = 1L;
6+
7+
private Integer id;
8+
private String nome;
9+
10+
public Pato() {}
11+
12+
public Pato(Integer id, String nome) {
13+
this.id = id;
14+
this.nome = nome;
15+
}
16+
17+
public void setId(Integer id) {
18+
this.id = id;
19+
}
20+
21+
public Integer getId() {
22+
return id;
23+
}
24+
25+
public void setNome(String nome) {
26+
this.nome = nome;
27+
}
28+
29+
public String getNome() {
30+
return nome;
31+
}
32+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
package com.example.crud.model;
2+
3+
public class Tatu {
4+
5+
public Tatu() {
6+
// TODO Auto-generated constructor stub
7+
}
8+
9+
}

0 commit comments

Comments
 (0)
Please sign in to comment.