List of commits:
Subject Hash Author Date (UTC)
Adatbázis változások átvezetlése 8ec4d8c3a4cfc2520ff5156b7c0e1b492a2dcf29 Horváth Attila 2022-08-31 10:33:02
Beállítások telepítéshez 88012c6a67d71262a1caa71c1935f07eec7b0936 dns 2021-02-10 12:57:51
contentsecuritypolicy módosítás 60bb037e6a3303ca12eaed8d412b5aae69b8ceb5 dns 2021-02-05 10:31:57
0331_2 00a464559936b141e0bce553cd70966e8b1a501d dns 2020-03-31 13:31:58
Jib paraméterek beállítása a pom.xml-ben 1b91afdf0cdd6d1b801029d3a78a729dfa1afed0 Horváth Attila 2020-03-31 11:48:19
Docker, App beállítások 25512b8045b5c3eb4e2cb5cf1ef274b33d4935fa Horváth Attila 2020-03-31 11:40:23
0331 acc000ac50c7b7711463bbab1116f7181f825ffe dns 2020-03-31 11:03:38
0330_2 05fd77b9aa068f6fbf8a15415e8f5c1585135a2c dns 2020-03-30 10:47:17
honlap_0330 6ea249cbc85e4d4f558d2ed709c7f8f2397cff10 dns 2020-03-30 08:03:34
PieceOfNews api be4def21487322b5d9b7c8ee5a028946e2e6fa33 Horváth Attila 2020-03-27 18:37:05
AppId kezelése 249216ae85ac705040dddc154ef610d17a5efeaa Horváth Attila 2020-03-26 12:42:58
PieceofNews entitás rendbe tétele 970fde24d6ce370c6cc002e55d087b787eb11852 Horváth Attila 2020-03-26 12:13:56
whitespace törlés 4. 3785cb83112283c52d7e99529d35c2a243f512d5 hd 2020-03-26 10:07:49
whitespace törlés 3. f5e673f76b454d535c63c0176f7341ec7e94c2f2 hd 2020-03-26 10:02:48
whitespace törlés 2. 2aad8c0a0ca4caf4df7955d1361bcae7ccf71379 hd 2020-03-26 10:01:22
whitespace törlés aeaa6adf034b51694722760c31668dad53bc9273 hd 2020-03-26 09:58:53
honlap init bae3256f55b2dcf338f1464508b5d6857c070bab hd 2020-03-26 09:50:58
honlap init 9dd61db1ca7a3be82eaabcb88af96fb061d72aa4 hd 2020-03-26 09:36:35
Initial version of honlap generated by JHipster-6.8.0 fbabb2905b7786b5e91bb5347b816854e35ac3bb hd 2020-03-26 08:59:15
Commit 8ec4d8c3a4cfc2520ff5156b7c0e1b492a2dcf29 - Adatbázis változások átvezetlése
Author: Horváth Attila
Author date (UTC): 2022-08-31 10:33
Committer name: Horváth Attila
Committer date (UTC): 2022-08-31 10:33
Parent(s): 88012c6a67d71262a1caa71c1935f07eec7b0936
Signing key:
Tree: 7ad82122fc85b3ad0126570e76a999ff9bc36c3e
File Lines added Lines deleted
src/main/java/hu/dns/honlap/domain/PieceOfNews.java 31 24
src/main/java/hu/dns/honlap/repository/PieceOfNewsRepository.java 3 2
src/main/java/hu/dns/honlap/web/rest/PieceOfNewsResource.java 3 2
src/main/resources/config/application-dev.yml 12 15
src/main/resources/config/application-prod.yml 7 4
src/test/java/hu/dns/honlap/web/rest/PieceOfNewsResourceIT.java 6 4
File src/main/java/hu/dns/honlap/domain/PieceOfNews.java changed (mode: 100644) (index 4f1376c..9132d6d)
1 1 package hu.dns.honlap.domain; package hu.dns.honlap.domain;
2 2
3 3 import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModel;
4 import org.hibernate.annotations.Cache;
5 import org.hibernate.annotations.CacheConcurrencyStrategy;
6
4 import java.time.Instant;
5 import java.time.LocalDate;
6 import java.util.UUID;
7 7 import javax.persistence.*; import javax.persistence.*;
8 8 import javax.validation.constraints.*; import javax.validation.constraints.*;
9
10 import java.time.Instant;
9 import org.hibernate.annotations.Cache;
10 import org.hibernate.annotations.CacheConcurrencyStrategy;
11 11
12 12 /** /**
13 13 * Hírek * Hírek
 
... ... import java.time.Instant;
15 15 @ApiModel(description = "Hírek") @ApiModel(description = "Hírek")
16 16 @Entity @Entity
17 17 @Table(name = "piece_of_news") @Table(name = "piece_of_news")
18 @Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
18 @Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
19 19 public class PieceOfNews extends AbstractAuditingEntity { public class PieceOfNews extends AbstractAuditingEntity {
20 20
21 21 private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
27 27
28 28 @NotNull @NotNull
29 29 @Column(name = "app_id", nullable = false) @Column(name = "app_id", nullable = false)
30 private Integer appId;
30 private UUID appId;
31 31
32 32 @NotNull @NotNull
33 33 @Column(name = "news_date", nullable = false) @Column(name = "news_date", nullable = false)
34 private Instant newsDate;
34 private LocalDate newsDate;
35 35
36 36 @NotNull @NotNull
37 37 @Size(max = 300) @Size(max = 300)
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
51 51 @Column(name = "publish_date") @Column(name = "publish_date")
52 52 private Instant publishDate; private Instant publishDate;
53 53
54 // jhipster-needle-entity-add-field - JHipster will add fields here, do not remove
54 // jhipster-needle-entity-add-field - JHipster will add fields here
55 55 public Long getId() { public Long getId() {
56 56 return id; return id;
57 57 } }
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
60 60 this.id = id; this.id = id;
61 61 } }
62 62
63 public Integer getAppId() {
64 return appId;
63 public PieceOfNews id(Long id) {
64 this.id = id;
65 return this;
66 }
67
68 public UUID getAppId() {
69 return this.appId;
65 70 } }
66 71
67 public PieceOfNews appId(Integer appId) {
72 public PieceOfNews appId(UUID appId) {
68 73 this.appId = appId; this.appId = appId;
69 74 return this; return this;
70 75 } }
71 76
72 public void setAppId(Integer appId) {
77 public void setAppId(UUID appId) {
73 78 this.appId = appId; this.appId = appId;
74 79 } }
75 80
76 public Instant getNewsDate() {
77 return newsDate;
81 public LocalDate getNewsDate() {
82 return this.newsDate;
78 83 } }
79 84
80 public PieceOfNews newsDate(Instant newsDate) {
85 public PieceOfNews newsDate(LocalDate newsDate) {
81 86 this.newsDate = newsDate; this.newsDate = newsDate;
82 87 return this; return this;
83 88 } }
84 89
85 public void setNewsDate(Instant newsDate) {
90 public void setNewsDate(LocalDate newsDate) {
86 91 this.newsDate = newsDate; this.newsDate = newsDate;
87 92 } }
88 93
89 94 public String getHeadline() { public String getHeadline() {
90 return headline;
95 return this.headline;
91 96 } }
92 97
93 98 public PieceOfNews headline(String headline) { public PieceOfNews headline(String headline) {
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
100 105 } }
101 106
102 107 public String getContent() { public String getContent() {
103 return content;
108 return this.content;
104 109 } }
105 110
106 111 public PieceOfNews content(String content) { public PieceOfNews content(String content) {
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
113 118 } }
114 119
115 120 public String getLink() { public String getLink() {
116 return link;
121 return this.link;
117 122 } }
118 123
119 124 public PieceOfNews link(String link) { public PieceOfNews link(String link) {
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
126 131 } }
127 132
128 133 public Instant getPublishDate() { public Instant getPublishDate() {
129 return publishDate;
134 return this.publishDate;
130 135 } }
131 136
132 137 public PieceOfNews publishDate(Instant publishDate) { public PieceOfNews publishDate(Instant publishDate) {
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
158 163 return this; return this;
159 164 } }
160 165
161 // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here, do not remove
166 // jhipster-needle-entity-add-getters-setters - JHipster will add getters and setters here
162 167
163 168 @Override @Override
164 169 public boolean equals(Object o) { public boolean equals(Object o) {
 
... ... public class PieceOfNews extends AbstractAuditingEntity {
173 178
174 179 @Override @Override
175 180 public int hashCode() { public int hashCode() {
176 return 31;
181 // see https://vladmihalcea.com/how-to-implement-equals-and-hashcode-using-the-jpa-entity-identifier/
182 return getClass().hashCode();
177 183 } }
178 184
185 // prettier-ignore
179 186 @Override @Override
180 187 public String toString() { public String toString() {
181 188 return "PieceOfNews{" + return "PieceOfNews{" +
182 189 "id=" + getId() + "id=" + getId() +
183 ", appId=" + getAppId() +
190 ", appId='" + getAppId() + "'" +
184 191 ", newsDate='" + getNewsDate() + "'" + ", newsDate='" + getNewsDate() + "'" +
185 192 ", headline='" + getHeadline() + "'" + ", headline='" + getHeadline() + "'" +
186 193 ", content='" + getContent() + "'" + ", content='" + getContent() + "'" +
File src/main/java/hu/dns/honlap/repository/PieceOfNewsRepository.java changed (mode: 100644) (index 5707f06..bb65156)
... ... import hu.dns.honlap.domain.PieceOfNews;
4 4
5 5 import java.time.Instant; import java.time.Instant;
6 6 import java.util.List; import java.util.List;
7 import java.util.UUID;
7 8
8 9 import org.springframework.data.jpa.repository.*; import org.springframework.data.jpa.repository.*;
9 10 import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
 
... ... import org.springframework.stereotype.Repository;
14 15 @SuppressWarnings("unused") @SuppressWarnings("unused")
15 16 @Repository @Repository
16 17 public interface PieceOfNewsRepository extends JpaRepository<PieceOfNews, Long> { public interface PieceOfNewsRepository extends JpaRepository<PieceOfNews, Long> {
17 List<PieceOfNews> findByAppIdAndPublishDateLessThanOrderByNewsDateDesc(Integer appId, Instant publishDate);
18 List<PieceOfNews> findFirst4ByAppIdAndPublishDateLessThanOrderByNewsDateDesc(Integer appId, Instant publishDate);
18 List<PieceOfNews> findByAppIdAndPublishDateLessThanOrderByNewsDateDesc(UUID appId, Instant publishDate);
19 List<PieceOfNews> findFirst4ByAppIdAndPublishDateLessThanOrderByNewsDateDesc(UUID appId, Instant publishDate);
19 20 } }
File src/main/java/hu/dns/honlap/web/rest/PieceOfNewsResource.java changed (mode: 100644) (index e75291c..cd7781b)
... ... import java.net.URISyntaxException;
24 24 import java.time.Instant; import java.time.Instant;
25 25 import java.util.List; import java.util.List;
26 26 import java.util.Optional; import java.util.Optional;
27 import java.util.UUID;
27 28
28 29 /** /**
29 30 * REST controller for managing {@link hu.dns.honlap.domain.PieceOfNews}. * REST controller for managing {@link hu.dns.honlap.domain.PieceOfNews}.
 
... ... public class PieceOfNewsResource {
108 109 @GetMapping("/piece-of-news/fresh") @GetMapping("/piece-of-news/fresh")
109 110 public ResponseEntity<List<PieceOfNews>> getFreshNews() { public ResponseEntity<List<PieceOfNews>> getFreshNews() {
110 111 log.debug("REST request to get the fresh news"); log.debug("REST request to get the fresh news");
111 List<PieceOfNews> news = pieceOfNewsRepository.findFirst4ByAppIdAndPublishDateLessThanOrderByNewsDateDesc(1, Instant.now());
112 List<PieceOfNews> news = pieceOfNewsRepository.findFirst4ByAppIdAndPublishDateLessThanOrderByNewsDateDesc(UUID.fromString("c68f359a-9c6d-4d01-9966-63a351c307d7"), Instant.now());
112 113 return ResponseEntity.ok().body(news); return ResponseEntity.ok().body(news);
113 114 } }
114 115
 
... ... public class PieceOfNewsResource {
120 121 @GetMapping("/piece-of-news/archive") @GetMapping("/piece-of-news/archive")
121 122 public ResponseEntity<List<PieceOfNews>> getArchiveNews() { public ResponseEntity<List<PieceOfNews>> getArchiveNews() {
122 123 log.debug("REST request to get the archive news"); log.debug("REST request to get the archive news");
123 List<PieceOfNews> news = pieceOfNewsRepository.findByAppIdAndPublishDateLessThanOrderByNewsDateDesc(1, Instant.now());
124 List<PieceOfNews> news = pieceOfNewsRepository.findByAppIdAndPublishDateLessThanOrderByNewsDateDesc(UUID.fromString("c68f359a-9c6d-4d01-9966-63a351c307d7"), Instant.now());
124 125 return ResponseEntity.ok().body(news); return ResponseEntity.ok().body(news);
125 126 } }
126 127
File src/main/resources/config/application-dev.yml changed (mode: 100644) (index e49a55d..603832e)
16 16 logging: logging:
17 17 level: level:
18 18 ROOT: DEBUG ROOT: DEBUG
19 io.github.jhipster: DEBUG
20 hu.dns.honlap: DEBUG
19 io:
20 github:
21 jhipster: DEBUG
22 hu:
23 dns:
24 honlap: DEBUG
21 25
22 26 spring: spring:
23 27 profiles: profiles:
 
... ... spring:
37 41 indent-output: true indent-output: true
38 42 datasource: datasource:
39 43 type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
40 url: jdbc:h2:file:./target/h2db/db/honlap;DB_CLOSE_DELAY=-1
41 username: honlap
42 password:
44 url: jdbc:postgresql://localhost:5432/magus
45 username: dns
46 password: Dzap19
43 47 hikari: hikari:
44 48 poolName: Hikari poolName: Hikari
45 49 auto-commit: false auto-commit: false
46 h2:
47 console:
48 enabled: false
50 validationTimeout: 300000
51 connectionTimeout: 300000
49 52 jpa: jpa:
50 show-sql: true
51 properties:
52 hibernate.id.new_generator_mappings: true
53 hibernate.connection.provider_disables_autocommit: true
54 hibernate.cache.use_second_level_cache: true
55 hibernate.cache.use_query_cache: false
56 hibernate.generate_statistics: false
53 database-platform: io.github.jhipster.domain.util.FixedPostgreSQL10Dialect
57 54 liquibase: liquibase:
58 55 # Remove 'faker' if you do not want the sample data to be loaded automatically # Remove 'faker' if you do not want the sample data to be loaded automatically
59 56 contexts: dev, faker contexts: dev, faker
File src/main/resources/config/application-prod.yml changed (mode: 100644) (index 81c3246..9f77106)
16 16 logging: logging:
17 17 level: level:
18 18 ROOT: INFO ROOT: INFO
19 io.github.jhipster: INFO
20 hu.dns.honlap: INFO
19 io:
20 github:
21 jhipster: INFO
22 hu:
23 dns:
24 honlap: INFO
21 25
22 26 management: management:
23 27 metrics: metrics:
 
... ... spring:
33 37 enabled: false enabled: false
34 38 datasource: datasource:
35 39 type: com.zaxxer.hikari.HikariDataSource type: com.zaxxer.hikari.HikariDataSource
36 url: jdbc:postgresql://postgresql:5432/magus
40 url: jdbc:postgresql://localhost:5432/magus
37 41 username: dns username: dns
38 42 password: Dzap19 password: Dzap19
39 43 hikari: hikari:
 
... ... spring:
41 45 auto-commit: false auto-commit: false
42 46 jpa: jpa:
43 47 database-platform: io.github.jhipster.domain.util.FixedPostgreSQL10Dialect database-platform: io.github.jhipster.domain.util.FixedPostgreSQL10Dialect
44 show-sql: false
45 48 # Replace by 'prod, faker' to add the faker context and have sample data loaded in production # Replace by 'prod, faker' to add the faker context and have sample data loaded in production
46 49 liquibase: liquibase:
47 50 contexts: prod contexts: prod
File src/test/java/hu/dns/honlap/web/rest/PieceOfNewsResourceIT.java changed (mode: 100644) (index 7f88758..3d332ad)
... ... import org.springframework.test.web.servlet.MockMvc;
15 15 import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
16 16 import javax.persistence.EntityManager; import javax.persistence.EntityManager;
17 17 import java.time.Instant; import java.time.Instant;
18 import java.time.LocalDate;
18 19 import java.time.temporal.ChronoUnit; import java.time.temporal.ChronoUnit;
19 20 import java.util.List; import java.util.List;
21 import java.util.UUID;
20 22
21 23 import static org.assertj.core.api.Assertions.assertThat; import static org.assertj.core.api.Assertions.assertThat;
22 24 import static org.hamcrest.Matchers.hasItem; import static org.hamcrest.Matchers.hasItem;
 
... ... import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.
32 34 @WithMockUser @WithMockUser
33 35 public class PieceOfNewsResourceIT { public class PieceOfNewsResourceIT {
34 36
35 private static final Integer DEFAULT_APP_ID = 1;
36 private static final Integer UPDATED_APP_ID = 2;
37 private static final UUID DEFAULT_APP_ID = UUID.fromString("c68f359a-9c6d-4d01-9966-63a351c307d2");
38 private static final UUID UPDATED_APP_ID = UUID.fromString("c68f359a-9c6d-4d01-9966-63a351c307d7");
37 39
38 private static final Instant DEFAULT_NEWS_DATE = Instant.ofEpochMilli(0L);
39 private static final Instant UPDATED_NEWS_DATE = Instant.now().truncatedTo(ChronoUnit.MILLIS);
40 private static final LocalDate DEFAULT_NEWS_DATE = LocalDate.now().minusDays(18L);
41 private static final LocalDate UPDATED_NEWS_DATE = LocalDate.now();
40 42
41 43 private static final String DEFAULT_HEADLINE = "AAAAAAAAAA"; private static final String DEFAULT_HEADLINE = "AAAAAAAAAA";
42 44 private static final String UPDATED_HEADLINE = "BBBBBBBBBB"; private static final String UPDATED_HEADLINE = "BBBBBBBBBB";
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/dns/honlap

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/dns/honlap

Clone this repository using git:
git clone git://git.rocketgit.com/user/dns/honlap

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main