Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Have a look at it from a different perspective: More and more web applications are not using "direct SQL" any longer. This enlarges the "distance" between the web developer and SQL/RDBMS. It creates a gap.</p> <p>There are even libraries which go in the opposite direction: No more HQL, just plain SQL. For example, there is <a href="http://www.playframework.com/documentation/2.1.1/ScalaAnorm" rel="nofollow">ANORM</a>, and this means "Anorm is Not an Object Relational Mapper".</p> <p>The given example looks fine and easy. But the whole story is not just table definitions and insert/update/delete. Later you have to query your data, and you may want to query it <em>as fast as possible</em> using all features of your database (<em>window aggregate functions</em> etc.), and at this point ORM could be tricky.</p> <p>As for your question: I suggest inspecting the current data model and queries carefully. Write some prototypes to see whether/how both ways to access data co-exist (caching issues, integration issues etc.). If you cannot switch completely to an ORM mapper, it might be easier to stick with "plain old SQL", and that's OK. It's not the <em>mapper</em> that matters: At the end of the day it's the <em>SQL commands</em> which arrive at your SQL server.</p> <p>And make sure that you can use the most recent version of JPA. One of the earlier versions did not even feature <em>case insensitive sorting</em>. Generally speaking as the version is often defined by your data center (= you have no choice), check if this version does support all the features you need.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload