HHH-10296 : Fix more DB reserved words used by tests
(cherry picked from commit cfbc0036f0
)
This commit is contained in:
parent
104635ba1f
commit
710cf4fee1
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
<class name="User" table="users">
|
<class name="User" table="users">
|
||||||
<id name="name"/>
|
<id name="name"/>
|
||||||
<property name="password" column="`password`"/>
|
<property name="password" column="pw"/>
|
||||||
<map name="session" cascade="persist,save-update,delete,delete-orphan">
|
<map name="session" cascade="persist,save-update,delete,delete-orphan">
|
||||||
<key column="userName" not-null="true"/>
|
<key column="userName" not-null="true"/>
|
||||||
<map-key formula="lower(name)" type="string"/>
|
<map-key formula="lower(name)" type="string"/>
|
||||||
|
@ -47,7 +47,7 @@
|
||||||
<return alias="u" class="User"/>
|
<return alias="u" class="User"/>
|
||||||
<return-join alias="s" property="u.session"/>
|
<return-join alias="s" property="u.session"/>
|
||||||
select
|
select
|
||||||
lower(u.name) as {u.name}, lower(u."password") as {u.password},
|
lower(u.name) as {u.name}, lower(u.pw) as {u.password},
|
||||||
lower(s.userName) as {s.key}, lower(s.name) as {s.index}, s.id as {s.element},
|
lower(s.userName) as {s.key}, lower(s.name) as {s.index}, s.id as {s.element},
|
||||||
{s.element.*}
|
{s.element.*}
|
||||||
from users u
|
from users u
|
||||||
|
|
Loading…
Reference in New Issue