forked from ebean-orm/website-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
254 lines (222 loc) · 7.41 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
<html lang="en">
<head>
<title>Ebean ORM for Java & Kotlin</title>
<meta name="layout" content="_layout2/base-home.html"/>
<meta http-equiv="X-UA-Compatible" content="ie-edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<article id="home-article">
<section>
<h3>Search documentation</h3>
<div id="nav-search">
<#include "/_layout2/_searchinput.ftl">
</div>
</section>
<div id="hero">
<h1><img src="/images/logo-200.png" width="120"> Ebean ORM</h1>
<h2>Persistence for Java & Kotlin</h2>
<div class="links">
<h4><a class="bright-link" href="/docs/getting-started"><i class="fas fa-angle-right"></i> Getting started</a></h4>
<h4><a href="/docs"><i class="fas fa-angle-right"></i> Documentation</a></h4>
<h4><a href="https://github.com/ebean-orm"><i class="fas fa-angle-right"></i> Github</a></h4>
</div>
<div id="sponsors">
<h4 class="mtx"><a href="/sponsors">premium sponsors</a></h4>
<#include "/_common/sponsor-list.html">
</div>
</div>
<section class="grid g3 mtx">
<div class="col-md-4">
<h3>Databases supported</h3>
<p>
<a href="/docs/database/h2">H2</a>,
<a href="/docs/database/postgres">Postgres</a>,
<a href="/docs/database/mysql">MySql</a>,
<a href="/docs/database/nuodb">NuoDB</a>,
<a href="/docs/database/postgres/postgis">PostGIS</a>,
<a href="/docs/database/mariadb">MariaDB</a>,
<a href="/docs/database/sqlserver">SQL Server</a>,
<a href="/docs/database/oracle">Oracle</a>,
<a href="/docs/database/hana">SAP Hana</a>,
<a href="/docs/database/cockroach">CockroachDB</a>,
<a href="/docs/database/clickhouse">Clickhouse</a>,
<a href="/docs/database/sqlite">Sqlite</a>.
</p>
</div>
<div class="col-md-4">
<h3>Multiple abstraction levels</h3>
<p>
Ebean provides multiple levels of query abstraction.
</p>
<ul>
<li><a href="/docs/intro/queries/orm-query">ORM Queries, mixed with SQL</a></li>
<li><a href="/docs/intro/queries/dto-query">DTO Queries</a></li>
<li><a href="/docs/intro/queries/sql-query">SqlQuery and JDBC</a></li>
</ul>
<p>
Work at the highest level of abstraction and drop down levels as needed.
</p>
</div>
<div class="col-md-4">
<h3>Benefits of ORM</h3>
<ul>
<li>Automatically avoid N+1</li>
<li>L2 caching to reduce database load</li>
<li>Queries mixing database and L2 cache</li>
<li>Automatically tune ORM queries</li>
<li>Elasticsearch for search or L3 cache.</li>
</ul>
</div>
<div class="col-md-4">
<h3>Docker test containers</h3>
<p>
<a href="/docs/testing">Docker test containers</a> for all the supported databases.
</p>
<p>
Get 100% test coverage on all the features of the database we use.
</p>
</div>
<div class="col-md-4">
<h3>Database migrations</h3>
<p>
Built in <a href="/docs/db-migrations">DB migration</a> generation and running.
</p>
<p>
Support for "rebase" migrations as well as repeatable, init and 'normal' migrations.
</p>
</div>
<div class="col-md-4">
<h3>Type safe queries</h3>
<p>
We can build queries using type safe <a href="/docs/query/query-beans">query beans</a>.
<p>
<p>
IDE auto-complete when writing queries, compile time checking and it's FUN.
</p>
</div>
<div class="col-md-4">
<h3>Automated query tuning</h3>
<p>
For ORM queries Ebean can profile the object graph being used and either
<a href="/docs/query/background/autotune">automatically tune the query</a>.
</p>
</div>
<div class="col-md-4">
<h3>Awesome SQL</h3>
<p>
Ebean produces SQL that you would hand craft yourself.
</p>
<p>
Use great SQL, never generate SQL cartesian product, always honor relational limit/offset.
</p>
</div>
<div class="col-md-4">
<h3>Performance isn't optional</h3>
<p>
<a href="/docs/query/fetchgroup">Optimise queries</a> to only fetch what we need (partial objects).
</p>
<p>
Automatically avoid N+1 via a smart load context.
</p>
</div>
</section>
<section class="mtx" style="text-align: center;">
<h4><a href="/sponsors">silver sponsors</a></h4>
<span class="avatar-gap"></span>
<div class="avatar-circle">
<span class="initials">MH</span>
</div>
<span class="avatar-name">Maximilian Holtzberg</span>
<span class="avatar-gap"></span>
<div class="avatar-circle">
<span class="initials">SH</span>
</div>
<span class="avatar-name">Szabolcs Hubai</span>
<span class="avatar-gap"></span>
<div class="avatar-circle">
<span class="initials small">AMAH</span>
</div>
<span class="avatar-name">Al-Mothafar Al-Hasan</span>
<span class="avatar-gap"></span>
<div class="avatar-circle">
<span class="initials small">SL</span>
</div>
<span class="avatar-name">Sando Leinzinger</span>
</section>
<p class="mtx"> </p>
<h2>About Ebean</h2>
<section class="grid g2 summary">
<aside>
<h3>JPA Mapping</h3>
<p>
Ebean uses JPA mapping annotations.
</p>
<p>
Extra mappings ebean provides include:<br>
<a href="/docs/mapping/extensions/dbjson">@DbJson</a>,
<a href="/docs/mapping/extensions/dbarray">@DbArray</a>,
<a href="/docs/mapping/extensions/dbpartition">@DbPartition</a>,
<a href="/docs/mapping/extensions/history">@History</a>,
<a href="/docs/mapping/extensions/when-modified">@WhenModified</a>,
<a href="/docs/mapping/extensions/who-modified">@WhoModified</a>,
<a href="/docs/mapping/extensions/soft-delete">@SoftDelete</a>,
<a href="/docs/mapping/extensions/encrypted">@Encrypted</a>
<a href="/docs/mapping/">more ...</a>
</p>
</aside>
<div>
<pre content="java">
@Entity
@Table(name="customer")
public class Customer extends BaseModel {
@Column(length=100)
String name;
@ManyToOne(cascade=CascadeType.ALL)
Address billingAddress;
@OneToMany(mappedBy="customer")
List<|Contact> contacts;
...
</pre>
</div>
<aside>
<h3>Simple to use</h3>
<p>
Ebean provides a simple programming model that developers can
understand and master quickly.
</p>
</aside>
<div>
<pre content="java">
// insert ...
Customer customer = new Customer("Joe");
customer.save();
...
// find and update ...
Customer customer = Customer.find.byId(42);
customer.setName("Montana");
customer.save();
</pre>
</div>
<aside>
<h3>Type safe queries</h3>
<p>
We can use <a href="/docs/query/query-beans">Query beans</a> to build queries in a type safe manner.
</p>
</aside>
<div>
<pre content="java">
List<|Customer> customers =
new QCustomer()
.name.istartsWith("rob")
.billingAddress.city.equalTo("Auckland")
.setMaxRows(10)
.orderBy()
.name.asc()
.findList();
</pre>
</div>
</section>
</article>
</body>
</html>