Skip to content

Commit 34199ba

Browse files
committed
Update Websocket sample to be compatible with H2 2.0
Closes gh-2013
1 parent cc5bb1f commit 34199ba

File tree

2 files changed

+6
-6
lines changed
  • spring-session-samples/spring-session-sample-boot-websocket/src/main

2 files changed

+6
-6
lines changed

spring-session-samples/spring-session-sample-boot-websocket/src/main/java/sample/data/User.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2019 the original author or authors.
2+
* Copyright 2014-2022 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -38,7 +38,7 @@
3838
*
3939
* @author Rob Winch
4040
*/
41-
@Entity
41+
@Entity(name = "custom_user")
4242
public class User implements Serializable {
4343

4444
@Id
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
insert into user(id,email,password,first_name,last_name) values (0,'rob','password','Rob','Winch');
2-
insert into user(id,email,password,first_name,last_name) values (1,'luke','password','Luke','Taylor');
3-
insert into user(id,email,password,first_name,last_name) values (2,'eve','password','Luke','Taylor');
1+
insert into custom_user(id,email,password,first_name,last_name) values (0,'rob','password','Rob','Winch');
2+
insert into custom_user(id,email,password,first_name,last_name) values (1,'luke','password','Luke','Taylor');
3+
insert into custom_user(id,email,password,first_name,last_name) values (2,'eve','password','Luke','Taylor');
44

5-
update user set password = '$2a$10$FBAKClV1zBIOOC9XMXf3AO8RoGXYVYsfvUdoLxGkd/BnXEn4tqT3u';
5+
update custom_user set password = '$2a$10$FBAKClV1zBIOOC9XMXf3AO8RoGXYVYsfvUdoLxGkd/BnXEn4tqT3u';

0 commit comments

Comments
 (0)