Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
e0a28582
提交
e0a28582
authored
12 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
2b22f40b
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
31 行增加
和
18 行删除
+31
-18
jaqu.html
h2/src/docsrc/html/jaqu.html
+1
-0
links.html
h2/src/docsrc/html/links.html
+2
-2
tutorial.html
h2/src/docsrc/html/tutorial.html
+28
-16
没有找到文件。
h2/src/docsrc/html/jaqu.html
浏览文件 @
e0a28582
...
...
@@ -325,6 +325,7 @@ Some ideas are:
<a
href=
"http://incubator.apache.org/empire-db/empiredb/empiredb.htm"
>
Empire-db
</a><br
/>
<a
href=
"http://www.jequel.de"
>
JEQUEL: Java Embedded QUEry Language
</a><br
/>
<a
href=
"http://joist.ws"
>
Joist
</a><br
/>
<a
href=
"http://www.jooq.org"
>
jOOQ
</a><br
/>
<a
href=
"http://josql.sourceforge.net"
>
JoSQL
</a><br
/>
<a
href=
"http://code.google.com/p/liquidform"
>
LIQUidFORM
</a><br
/>
<a
href=
"http://svn.quaere.codehaus.org/browse/~raw,r=76/quaere/trunk/Quaere/src/test/java/org/quaere/alias/test/SamplesTest.java"
>
Quaere (Alias implementation)
</a><br
/>
...
...
This diff is collapsed.
Click to expand it.
h2/src/docsrc/html/links.html
浏览文件 @
e0a28582
...
...
@@ -424,9 +424,9 @@ JMatter</a><br />
Framework for constructing workgroup business applications based on the Naked Objects Architectural Pattern.
</p>
<p><a
href=
"http://
jooq.sourceforge.net
"
>
<p><a
href=
"http://
www.jooq.org
"
>
jOOQ (Java Object Oriented Querying)
</a><br
/>
jOOQ
takes your database schema as a base for code generation.
jOOQ
is a fluent API for typesafe SQL query construction and execution
</p>
<p><a
href=
"http://getjotbot.com"
>
...
...
This diff is collapsed.
Click to expand it.
h2/src/docsrc/html/tutorial.html
浏览文件 @
e0a28582
...
...
@@ -567,7 +567,8 @@ When using Hibernate, try to use the <code>H2Dialect</code> if possible.
When using the
<code>
H2Dialect
</code>
,
compatibility modes such as
<code>
MODE=MySQL
</code>
are not supported.
When using such a compatibility mode, use the Hibernate dialect for the
corresponding database instead of the
<code>
H2Dialect
</code>
.
corresponding database instead of the
<code>
H2Dialect
</code>
;
but please note H2 does not support all features of all databases.
</p>
<h2
id=
"using_toplink"
>
Using TopLink and Glassfish
</h2>
...
...
@@ -646,24 +647,35 @@ then run the jOOQ code generator on the command line using this command:
</p>
<pre>
java -cp jooq.jar;jooq-meta.jar;jooq-codegen.jar;h2-1.3.158.jar;.
org.jooq.util.GenerationTool /codegen.
properties
org.jooq.util.GenerationTool /codegen.
xml
</pre>
<p>
...where
<code>
codegen.
properties
</code>
contains this information
...where
<code>
codegen.
xml
</code>
is on the classpath and
contains this information
</p>
<pre>
jdbc.Driver=org.h2.Driver
jdbc.URL=jdbc:h2:~/test
jdbc.Schema=PUBLIC
jdbc.User=sa
jdbc.Password=
generator=org.jooq.util.DefaultGenerator
generator.database=org.jooq.util.h2.H2Database
generator.database.includes=.*
generator.database.excludes=
generator.generate.relations=true
generator.target.package=org.jooq.h2.generated
generator.target.directory=./src
<
?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<
configuration xmlns="http://www.jooq.org/xsd/jooq-codegen-2.3.0.xsd">
<
jdbc>
<
driver>org.h2.Driver
<
/driver>
<
url>jdbc:h2:~/test
<
/url>
<
user>sa
<
/user>
<
password>
<
/password>
<
/jdbc>
<
generator>
<
name>org.jooq.util.DefaultGenerator
<
/name>
<
database>
<
name>org.jooq.util.h2.H2Database
<
/name>
<
includes>.*
<
/includes>
<
excludes>
<
/excludes>
<
inputSchema>PUBLIC
<
/inputSchema>
<
/database>
<
generate>
<
/generate>
<
target>
<
packageName>org.jooq.h2.generated
<
/packageName>
<
directory>./src
<
/directory>
<
/target>
<
/generator>
<
/configuration>
</pre>
<p>
Using the generated source, you can query the database as follows:
...
...
@@ -678,7 +690,7 @@ create.selectFrom(USER)
</pre>
<p>
See more details on
<a
href=
"http://www.jooq.org"
>
jOOQ Homepage
</a>
and in the
<a
href=
"http://
sourceforge.net/apps/trac/jooq/wiki/Manual/META/Configuration"
>
jOOQ Manu
al
</a>
and in the
<a
href=
"http://
www.jooq.org/tutorial.php"
>
jOOQ Tutori
al
</a>
</p>
<h2
id=
"web_applications"
>
Using Databases in Web Applications
</h2>
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论