I found in both case it will work to create table but why data is getting remove when having connection property as create?

|
v_lan1337 2022-06-27 20:23:26
Modi_34 2022-06-27 19:55:48
Ok I am adding these
Can you tell me we need to setup tomcat?

No need. Springboot has an embedded tomcat server. Just add the server port no. in your application.properties.
server.port=80

Neslihan 2022-06-27 22:07:33
When I stop the server everytime data deleted from database. How can I solve this to keep the data in it ?
sai333_4 2022-06-27 22:08:48
Neslihan 2022-06-27 22:07:33
When I stop the server everytime data deleted from database. How can I solve this to keep the data in it ?

Use update instand if create

Neslihan 2022-06-27 22:09:18
sai333_4 2022-06-27 22:08:48
Use update instand if create

You mean in controller ?

2022-06-28 04:19:09
Modi_34 2022-06-27 19:52:25

In case if you are not using jpa then make sure you must added mysql drive and jdbc driver as well

2022-06-28 04:19:26
Add the jdbc dependencies and run it again
2022-06-28 04:19:35
It will work
Modi_34 2022-06-28 04:48:53
v_lan1337 2022-06-27 20:23:26
No need. Springboot has an embedded tomcat server. Just add the server port no. in your application.properties.
server.port=80

Ok bro

Satish Tammana 2022-06-28 05:27:27
Neslihan 2022-06-27 22:09:18
You mean in controller ?

You should use this spring.jpa.hibernate.ddl-auto=update instead of spring.jpa.hibernate.ddl-auto=create in application properties

2022-06-28 05:35:54
Satish Tammana 2022-06-28 05:27:27
You should use this spring.jpa.hibernate.ddl-auto=update instead of spring.jpa.hibernate.ddl-auto=create in application properties

Let’s say at very first if table is not available then also need to keep update?

I found in both case it will work to create table but why data is getting remove when having connection property as create?

Madusankalmnop 2022-06-28 05:37:08
it is complex to understand methods in spring boot
Zeref 2022-06-28 05:59:21
2022-06-28 05:35:54
Let’s say at very first if table is not available then also need to keep update?

I found in both case it will work to create table but why data is getting remove when having connection property as create?

In case of create it will drop the table and create new one,
In case of update it will create the table if it does not exist

2022-06-28 06:02:46
Zeref 2022-06-28 05:59:21
In case of create it will drop the table and create new one,
In case of update it will create the table if it does not exist

Ok thanks got the clarity

2022-06-28 08:17:30
Anyone with 30 lpa package?
MochiTaeKookie 2022-06-28 08:20:12
Hello can I ask sql doubt here??
Jaggu 2022-06-28 08:20:29
Sure
2022-06-28 08:20:55
Jaggu 2022-06-28 08:20:29
Sure

30 lpa?

Jaggu 2022-06-28 08:21:21
MochiTaeKookie 2022-06-28 08:20:12
Hello can I ask sql doubt here??

For this

MochiTaeKookie 2022-06-28 08:27:18
Jaggu 2022-06-28 08:20:29
Sure

Thanks…..in database there are already two tables and I have to create a relation between them….how to create that??

Bolt 2022-06-28 08:29:54
MochiTaeKookie 2022-06-28 08:27:18
Thanks…..in database there are already two tables and I have to create a relation between them….how to create that??

Using SQL workbench?

MochiTaeKookie 2022-06-28 08:31:20
Bolt 2022-06-28 08:29:54
Using SQL workbench?

Is there any other option except sql workbenche

2022-06-28 08:49:15
springbootmicroservices-65193.jpg

2022-06-28 08:56:03
2022-06-28 08:17:30
Anyone with 30 lpa package?

Why you want to know this? It’s confidential

2022-06-28 08:56:53
2022-06-28 08:56:03
Why you want to know this? It’s confidential

I want to know what i have to do to achieve this within 2-3 years

Bp 2022-06-28 09:03:58
I want to learn advanced java and Spring, can anyone suggest any u tube point to learn in an easy way😢
Shashikant Patil 2022-06-28 09:14:31
ERROR: insert or update on table “tt_hrms_asset” violates foreign key constraint “fk_hrms_asset_lookup_det_id_asset_name”
Detail: Key (lookup_det_id_asset_name)=(0) is not present in table “tm_cm_lookup_det”.
Where: SQL statement “INSERT
INTO hrms.tt_hrms_asset(
hrms_asset_id,

How to solve this error . when i save data i got this error
Look up I’d showing 0 i want look up I’d null .so how to pass null

v_lan1337 2022-06-28 09:25:55
Shashikant Patil 2022-06-28 09:14:31
ERROR: insert or update on table “tt_hrms_asset” violates foreign key constraint “fk_hrms_asset_lookup_det_id_asset_name”
Detail: Key (lookup_det_id_asset_name)=(0) is not present in table “tm_cm_lookup_det”.
Where: SQL statement “INSERT
INTO hrms.tt_hrms_asset(
hrms_asset_id,

How to solve this error . when i save data i got this error
Look up I’d showing 0 i want look up I’d null .so how to pass null

check for <column_name> is null.

Shashikant Patil 2022-06-28 09:35:36
Ok i will check thanks sir ji
Prudhvi . 2022-06-28 10:11:33
Neslihan 2022-06-27 22:09:18
You mean in controller ?

Application.properties

Prudhvi . 2022-06-28 10:12:16
shiv 2022-06-27 19:55:13

In this see 9th line

|