Quellcode durchsuchen

updates to trying to get data to populate on startup

Lauren Green vor 5 Jahren
Ursprung
Commit
278e7a96f2

+ 5
- 2
src/main/resources/config/application-dev.yml Datei anzeigen

43
         serialization:
43
         serialization:
44
             indent-output: true
44
             indent-output: true
45
     datasource:
45
     datasource:
46
-        type: com.zaxxer.hikari.HikariDataSource
46
+#        type: com.zaxxer.hikari.HikariDataSource
47
         url: jdbc:h2:mem:zipconnect;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
47
         url: jdbc:h2:mem:zipconnect;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
48
         username: ZipConnect
48
         username: ZipConnect
49
         password:
49
         password:
50
         hikari:
50
         hikari:
51
             auto-commit: false
51
             auto-commit: false
52
+        platform: h2
52
     h2:
53
     h2:
53
         console:
54
         console:
54
-            enabled: false
55
+            enabled: true
55
     jpa:
56
     jpa:
56
         database-platform: io.github.jhipster.domain.util.FixedH2Dialect
57
         database-platform: io.github.jhipster.domain.util.FixedH2Dialect
57
         database: H2
58
         database: H2
66
             hibernate.cache.hazelcast.instance_name: ZipConnect
67
             hibernate.cache.hazelcast.instance_name: ZipConnect
67
             hibernate.cache.use_minimal_puts: true
68
             hibernate.cache.use_minimal_puts: true
68
             hibernate.cache.hazelcast.use_lite_member: true
69
             hibernate.cache.hazelcast.use_lite_member: true
70
+        hibernate:
71
+            ddl-auto: create-drop
69
     liquibase:
72
     liquibase:
70
         contexts: dev
73
         contexts: dev
71
     mail:
74
     mail:

+ 1
- 1
src/main/resources/config/application.yml Datei anzeigen

66
         properties:
66
         properties:
67
             hibernate.jdbc.time_zone: UTC
67
             hibernate.jdbc.time_zone: UTC
68
         hibernate:
68
         hibernate:
69
-            ddl-auto: none
69
+            ddl-auto: create-drop
70
             naming:
70
             naming:
71
                 physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
71
                 physical-strategy: org.springframework.boot.orm.jpa.hibernate.SpringPhysicalNamingStrategy
72
                 implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy
72
                 implicit-strategy: org.springframework.boot.orm.jpa.hibernate.SpringImplicitNamingStrategy

src/main/resources/data.sql → src/main/resources/data-h2.sql Datei anzeigen

283
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Claudian', 'Lynock', 'Python', 10, 4, 3);
283
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Claudian', 'Lynock', 'Python', 10, 4, 3);
284
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Karney', 'Bantham', 'JavaScript', 29, 7, 9);
284
 insert into PUBLIC.USER_PROFILE (first_name, last_name, user_stack, user_id, employer_id, cohort_id) values ('Karney', 'Bantham', 'JavaScript', 29, 7, 9);
285
 
285
 
286
+insert into PUBLIC.COHORT (id, grad_date) values (1, '3/19/2016');
287
+insert into PUBLIC.COHORT (id, grad_date) values (2, '8/18/2018');
288
+insert into PUBLIC.COHORT (id, grad_date) values (3, '11/23/2015');
289
+insert into PUBLIC.COHORT (id, grad_date) values (4, '4/23/2016');
290
+insert into PUBLIC.COHORT (id, grad_date) values (5, '8/10/2017');
291
+insert into PUBLIC.COHORT (id, grad_date) values (6, '12/7/2018');
292
+insert into PUBLIC.COHORT (id, grad_date) values (7, '10/18/2016');
293
+insert into PUBLIC.COHORT (id, grad_date) values (8, '1/14/2015');
294
+insert into PUBLIC.COHORT (id, grad_date) values (9, '3/20/2016');
295
+insert into PUBLIC.COHORT (id, grad_date) values (10, '2/20/2015');

+ 3
- 0
src/main/webapp/app/newsfeed/newsfeed.component.html Datei anzeigen

1
+<p>
2
+  newsfeed works!
3
+</p>

+ 12
- 0
src/main/webapp/app/newsfeed/newsfeed.component.ts Datei anzeigen

1
+import { Component, OnInit } from '@angular/core';
2
+
3
+@Component({
4
+    selector: 'jhi-newsfeed',
5
+    templateUrl: './newsfeed.component.html',
6
+    styles: []
7
+})
8
+export class NewsfeedComponent implements OnInit {
9
+    constructor() {}
10
+
11
+    ngOnInit() {}
12
+}

+ 3
- 0
src/main/webapp/app/timeline/timeline.component.html Datei anzeigen

1
+<p>
2
+  timeline works!
3
+</p>

+ 12
- 0
src/main/webapp/app/timeline/timeline.component.ts Datei anzeigen

1
+import { Component, OnInit } from '@angular/core';
2
+
3
+@Component({
4
+    selector: 'jhi-timeline',
5
+    templateUrl: './timeline.component.html',
6
+    styles: []
7
+})
8
+export class TimelineComponent implements OnInit {
9
+    constructor() {}
10
+
11
+    ngOnInit() {}
12
+}