Posts

Showing posts from March, 2019

data.sql is not executing post spring boot migration to 2.x

Image
0 Below are the loggers getting while running spring boot application. before migration used to get 'SpringUtils' logger info like 'Executed data.sql': 2018-11-21 13:59:11 - Mapping filter: 'corsFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'characterEncodingFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'springSessionRepositoryFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'hiddenHttpMethodFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'formContentFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'requestContextFilter' to: [/*] 2018-11-21 13:59:11 - Mapping filter: 'springSecurityFilterChain' to: [/*] 2018-11-21 13:59:11 - Servlet dispatcherServlet mapped to [/] 2018-11-21 13:59:16 - Cluster created wi...

1858

Image
SÉCULOS: Século XVIII — Século XIX — Século XX DÉCADAS: 1800 • 1810 • 1820 • 1830 • 1840 • 1850 • 1860 • 1870 • 1880 • 1890 • 1900 ANOS: 1853 • 1854 • 1855 • 1856 • 1857 • 1858 • 1859 • 1860 • 1861 • 1862 • 1863 Outros projetos Wikimedia também contêm material sobre este tema: Textos originais no Wikisource Wikisource 1858 em outros calendários Calendário gregoriano 1858 MDCCCLVIII Ab urbe condita 2611 Calendário arménio N/A Calendário chinês 4554 – 4555 Calendário judaico 5618 – 5619 Calendários hindus - Vikram Samvat - Shaka Samvat - Kali Yuga 1913 – 1914 1780 – 1781 4959 – 4960 Calendário persa 1236 – 1237 Calendário islâmico 1275 – 1276 Calendário rúnico 2108 1858 ( MDCCCLVIII , na numeração romana) foi um ano comum do século XIX do actual Calendário Gregoriano, da Era de Cristo, e a sua letra dominical foi C, teve 52 semanas, início a uma sexta-feira e t...

Inserting data from frontend in foreign key through query

Image
0 I'm trying to pass the data (post method) from Angular to Postgresql via Nodejs. How to insert foreign key value from frontend (dynamically) in insert query ? query1: INSERT INTO tab_student (name_student, id_teacher_fk) VALUES ('abc', (SELECT id_teacher FROM tab_teacher WHERE id_teacher_pk = ? ) //how do we get the foreign key id_teacher_fk from frontend query 2: INSERT INTO tab_student (name_student, id_teacher_fk) VALUES ('rich man', LAST_INSERT_ID()) sql postgresql share | improve this question edited Nov 21 at 11:30 ...