forked from forge/plugin-hibernate-tools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
scenario
34 lines (30 loc) · 941 Bytes
/
scenario
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
datasource add --name testH2 --type H2
// datasource edit --name testH2
datasource info --name testH2
datasource remove --name testH2
datasource type --name H2
generate-entities --datasource testH2
*************************************
<datasourceTypes>
<type name="HSQL">
<dialect name="org.hibernate.dialect.HSQLDialect"/>
<drivers>
<class name="org.hsqldb.jdbcDriver">
<url value="jdbc:hsqldb:hsql://<host>"/>
<url value="jdbc:hsqldb:<dbname>"/>
<url value="jdbc:hsqldb:."/>
</class>
</drivers>
</type>
<type name="H2">
<dialect name="org.hibernate.dialect.H2Dialect"/>
<drivers>
<class name="org.h2.Driver">
<url value="jdbc:h2:<filename"/>
<url value="jdbc:h2:mem:"/>
<url value="jdbc:h2:mem:<databaseName>"/>
<url value="jdbc:h2:tcp://<server>[:<port>]/<databaseName>"/>
</class>
</drivers>
</type>
</datasourceTypes>