case insensitive login (fixes #16)

This commit is contained in:
Athou
2013-04-06 17:10:38 +02:00
parent b2421eb1ff
commit 4cb77f5a73
2 changed files with 21 additions and 7 deletions

View File

@@ -4,6 +4,10 @@
xsi:schemaLocation="
http://java.sun.com/xml/ns/persistence/orm
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd">
<named-query name="User.byName">
<query>select u FROM User u WHERE lower(u.name)=:name</query>
</named-query>
<named-query name="Entry.byGuids">
<query>select e from FeedEntry e where e.guid in (:guids) order by e.updated desc</query>