skip to Main Content

Mysql – Springboot not creating database tables

i created my entity in springboot import jakarta.persistence.Entity; import jakarta.persistence.GeneratedValue; import jakarta.persistence.GenerationType; import jakarta.persistence.Table; @Table(name="users") @Entity public class User { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long id; private String username; private String email; } i setted the database configuration in…

VIEW QUESTION

MySQL optimizing query for averaging

I have database like this (in real there are over 30 different sKey): +----+------+------+---------------------+ |ID | sKey | sVal | timestamp | +----+------+------+---------------------+ | 1 | temp | 19 | 2023-07-14 20:32:06 | | 2 | humi | 60 |…

VIEW QUESTION
Back To Top
Search