You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit efd2c2b
Browse filesBrowse the repository at this point in the historyBrowse files
Hibernate5 multitenancy changing to hibernate.properties config file. (eugenp#1881)
* First commit for Hibernate 5 Multitenancy tutorial
* Changes to fix the code.
* Added hibernate begin transaction code.
* Changes to solve the multitenancy issue.
* Changes to integrate h2
* Changing configs to solve the error
* Changes to solve h2 error...
* Changes to fix H2 error.
* Cleaned POM.xml and changed entity name
* Changes table name to supplier
* Removed MySql Dep from pom.xml.
* Changes as per comment in the PR...
* Removed try-catch from test functions.
* Removing the hibernate xml config.
* Changed the formatting as per the formatter.
* Clean up after merge.
* # WARNING: head commit changed in the meantime
Merge remote-tracking branch 'upstream/master' into
hibernate5-multitenancy
Conflicts:
hibernate5/pom.xml
pom.xml
db1Session.createSQLQuery("DROP ALL OBJECTS").executeUpdate();
52
-
db1Session.createSQLQuery("create table Supplier (id integer generated by default as identity, country varchar(255), name varchar(255), primary key (id))").executeUpdate();
52
+
db1Session
53
+
.createSQLQuery(
54
+
"create table Supplier (id integer generated by default as identity, country varchar(255), name varchar(255), primary key (id))")
55
+
.executeUpdate();
53
56
db1Session.createSQLQuery("insert into Supplier (id, country, name) values (null, 'John', 'USA')").executeUpdate();
db2Session.createSQLQuery("DROP ALL OBJECTS").executeUpdate();
62
-
db2Session.createSQLQuery("create table Supplier (id integer generated by default as identity, country varchar(255), name varchar(255), primary key (id))").executeUpdate();
65
+
db2Session
66
+
.createSQLQuery(
67
+
"create table Supplier (id integer generated by default as identity, country varchar(255), name varchar(255), primary key (id))")
68
+
.executeUpdate();
63
69
db2Session.createSQLQuery("insert into Supplier (id, country, name) values (null, 'Miller', 'UK')").executeUpdate();
0 commit comments