skip to Main Content

Mysql – Error Code: 1364. Field 'userid' doesn't have a default value

This is the error: java.sql.SQLException: Field 'userid' doesn't have a default value at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:130) ~[mysql-connector-j-8.3.0.jar:8.3.0] This is my Entity class: @Entity @Table(name = "users") public class Users { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int userId; } Table: CREATE TABLE `users`…

VIEW QUESTION

Postgresql – Foreign key is not correct after flywaydb migration in postgress and springboot

I have 4 tenants - tenant1,tenant2,tenant3,tenant4,tenant5 and i am using spring boot, postgress database and flywaydb Migration to database version and auto create when new tenant registered. Base code : https://github.com/AnarSultanov/examples/tree/master/schema-based-multi-tenancy https://sultanov.dev/blog/schema-based-multi-tenancy-with-spring-data/ in my sql scripts i have added foreign…

VIEW QUESTION

How to setup java spring boot application to send message to Azure service bus Topic

I am asking this question here to get help from Microsoft or community I want to send messages to a topic using spring boot application The azure page is service bus My app properties spring.cloud.azure.servicebus.namespace=<<some name>> spring.cloud.azure.servicebus.entity-name=<<some topic>> spring.cloud.azure.servicebus.processor.subscription-name=<<somesub>> spring.cloud.azure.servicebus.entity-type=topic…

VIEW QUESTION
Back To Top
Search