Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
48 lines (40 sloc) 1.26 KB
<html>
<head>
<title>First entity | Intro | Ebean</title>
<meta name="layout" content="_layout/docs_intro_query.html"/>
<meta name="bread2" content="Query abstractions" href="/docs/intro/query-abstractions"/>
<#assign query="active">
</head>
<body>
<h2>Query abstraction levels</h2>
<p>
Ebean provides multiple levels of abstraction from <a href="orm-query">ORM Queries</a>, to
using a bit of SQL in our ORM query and all the way down to using straight SQL queries
with beans at all and down to JDBC directly.
</p>
<p>
As developers we want to stay at the highest abstraction layer (ORM queries) but as needs occur we
can drop down into bits of SQL and full SQL as needed.
</p>
<h5><a href="orm-query">ORM queries</a></h5>
<ul>
<li>Pure ORM queries</li>
<li>Some SQL in the select or where clause</li>
<li>Using SQL (aka find native)</li>
</ul>
<h5><a href="dto-query">DTO queries</a></h5>
<ul>
<li>Using SQL</li>
</ul>
<h5><a href="sql-query">SqlQuery</a></h5>
<ul>
<li>SqlQuery using SqlRow</li>
<li>SqlQuery using RowMappers</li>
</ul>
<h5><a href="jdbc-query">JDBC queries</a></h5>
<ul>
<li>Straight use of JDBC</li>
</ul>
<@next_edit "ORM Query" "/docs/intro/query-abstractions/orm-query" "/docs/intro/query-abstractions/index.html"/>
</body>
</html>
You can’t perform that action at this time.