Browse Source

Add warning statement about custom queries

Signed-off-by: Pekka Helenius <fincer89@hotmail.com>
v0.0.4-alpha
Pekka Helenius 4 years ago
parent
commit
5d2b648ab3
1 changed files with 9 additions and 0 deletions
  1. +9
    -0
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepositoryImpl.java

+ 9
- 0
bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepositoryImpl.java View File

@ -24,6 +24,15 @@ public class BookRepositoryImpl implements BookRepositoryCustom {
@PersistenceContext @PersistenceContext
EntityManager entityManager; EntityManager entityManager;
/*
* WARNING: Custom queries MAY BREAK in some SQL server implementations.
* Basically, a custom query can work in MySQL server environment whereas it breaks
* in PostgreSQL or Microsoft SQL server context.
*
* Make sure that any custom query you define is properly supported by your target
* SQL server.
*/
/* /*
* Selective update * Selective update
* Hibernate takes care of entityManager transactions (begin, commit, rollback, close, etc.) * Hibernate takes care of entityManager transactions (begin, commit, rollback, close, etc.)


Loading…
Cancel
Save