Skip to content
This repository was archived by the owner on Jan 30, 2019. It is now read-only.

Commit 3f8d69a

Browse files
author
Arun Gupta
committed
Fixing the table names
Former-commit-id: e1b72a4a63121b52b5f903a194bcbc7123936c77
1 parent 7a39b85 commit 3f8d69a

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

  • samples/jpa/locking-optimistic/src/main

samples/jpa/locking-optimistic/src/main/java/org/glassfish/samples/locking/optimistic/Movie.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
* @author Arun Gupta
5555
*/
5656
@Entity
57-
@Table(name = "MOVIE_LOCKING")
57+
@Table(name = "MOVIE_OPTIMISTIC")
5858
@XmlRootElement
5959
@NamedQueries({
6060
@NamedQuery(name = "Movie.findAll", query = "SELECT m FROM Movie m"),
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
INSERT INTO MOVIE_LOCKING("ID", "NAME", "ACTORS") VALUES (1, 'The Matrix', 'Keanu Reeves, Laurence Fishburne, Carrie-Ann Moss')
2-
INSERT INTO MOVIE_LOCKING("ID", "NAME", "ACTORS") VALUES (2, 'The Lord of The Rings', 'Elijah Wood, Ian Mckellen, Viggo Mortensen')
3-
INSERT INTO MOVIE_LOCKING("ID", "NAME", "ACTORS") VALUES (3, 'Inception', 'Leonardo DiCaprio')
4-
INSERT INTO MOVIE_LOCKING("ID", "NAME", "ACTORS") VALUES (4, 'The Shining', 'Jack Nicholson, Shelley Duvall')
1+
INSERT INTO MOVIE_OPTIMISTIC("ID", "NAME", "ACTORS") VALUES (1, 'The Matrix', 'Keanu Reeves, Laurence Fishburne, Carrie-Ann Moss')
2+
INSERT INTO MOVIE_OPTIMISTIC("ID", "NAME", "ACTORS") VALUES (2, 'The Lord of The Rings', 'Elijah Wood, Ian Mckellen, Viggo Mortensen')
3+
INSERT INTO MOVIE_OPTIMISTIC("ID", "NAME", "ACTORS") VALUES (3, 'Inception', 'Leonardo DiCaprio')
4+
INSERT INTO MOVIE_OPTIMISTIC("ID", "NAME", "ACTORS") VALUES (4, 'The Shining', 'Jack Nicholson, Shelley Duvall')

0 commit comments

Comments
 (0)