whitespace fix
Signed-off-by: Gavin King <gavin@hibernate.org>
This commit is contained in:
parent
7f3c73b438
commit
5bd244dd20
|
@ -518,8 +518,8 @@ We need a place to put the annotation, so let's move our query method to a new c
|
||||||
[source,java]
|
[source,java]
|
||||||
----
|
----
|
||||||
@CheckHQL // validate named queries at compile time
|
@CheckHQL // validate named queries at compile time
|
||||||
@NamedQuery(name="findBooksByTitle",
|
@NamedQuery(name = "findBooksByTitle",
|
||||||
query="from Book where title like :title order by title")
|
query = "from Book where title like :title order by title")
|
||||||
class Queries {
|
class Queries {
|
||||||
|
|
||||||
static List<Book> findBooksByTitleWithPagination(Session session,
|
static List<Book> findBooksByTitleWithPagination(Session session,
|
||||||
|
|
|
@ -123,8 +123,8 @@ For example, if we had:
|
||||||
[source,java]
|
[source,java]
|
||||||
----
|
----
|
||||||
@CheckHQL // validate named queries at compile time
|
@CheckHQL // validate named queries at compile time
|
||||||
@NamedQuery(name="findBooksByTitle",
|
@NamedQuery(name = "findBooksByTitle",
|
||||||
query="from Book where title like :title order by title")
|
query = "from Book where title like :title order by title")
|
||||||
@Entity
|
@Entity
|
||||||
class Book { ... }
|
class Book { ... }
|
||||||
----
|
----
|
||||||
|
|
Loading…
Reference in New Issue