Upgrade to H2 2.1.210
H2 2.x contains several important changes such as moving the primary key generation mechanism to a sequence-based identifier. This commit fixes a number of tests that were failing. Closes gh-29651 Co-authored-by: Andy Wilkinson <wilkinsona@vmware.com>
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2019 the original author or authors.
|
||||
* Copyright 2012-2022 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -20,6 +20,7 @@ import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
|
||||
@@ -29,6 +30,7 @@ import org.springframework.util.Assert;
|
||||
* @author Phillip Webb
|
||||
*/
|
||||
@Entity
|
||||
@Table(name = "DRIVER")
|
||||
public class User {
|
||||
|
||||
@Id
|
||||
|
||||
@@ -1 +1 @@
|
||||
INSERT INTO USER(ID, USERNAME, VIN) values (123, 'sframework', '01234567890123456');
|
||||
INSERT INTO DRIVER(id, username, vin) values (123, 'sframework', '01234567890123456');
|
||||
|
||||
Reference in New Issue
Block a user