hi ive added a new table and im not sure if im missing an error in my application or whether the problem lies with liquibase.
My hibernate entity looks like this:
@Entity
public class GlobalParameter {
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
private Integer id;
private String parameterKey;
private String parameterValue;
…
Whenever i try to save objects with id value null into the db it throws an error: “java.sql.SQLException: Field ‘id’ doesn’t have a default value”
Is it possible, that this is because i havent told liquibase that my pkey id has to be auto incremented? If so how can i do this? i do not find the solution in the examples.
greetings
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog