Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

Commit 8d907de

Browse files
Add hibernate dialect support.
1 parent d15b5b6 commit 8d907de

5 files changed

Lines changed: 398 additions & 0 deletions

File tree

tools/hibernate-dialect/.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
.classpath
2+
.project
3+
.settings
4+
mvn.out
5+
target/*
6+
/target/
7+
*.log
8+
/LICENSE
9+
/NOTICE

tools/hibernate-dialect/Makefile

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# @@@ START COPYRIGHT @@@
2+
# #
3+
# # Licensed to the Apache Software Foundation (ASF) under one
4+
# # or more contributor license agreements. See the NOTICE file
5+
# # distributed with this work for additional information
6+
# # regarding copyright ownership. The ASF licenses this file
7+
# # to you under the Apache License, Version 2.0 (the
8+
# # "License"); you may not use this file except in compliance
9+
# # with the License. You may obtain a copy of the License at
10+
# #
11+
# # http://www.apache.org/licenses/LICENSE-2.0
12+
# #
13+
# # Unless required by applicable law or agreed to in writing,
14+
# # software distributed under the License is distributed on an
15+
# # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16+
# # KIND, either express or implied. See the License for the
17+
# # specific language governing permissions and limitations
18+
# # under the License.
19+
# #
20+
# # @@@ END COPYRIGHT @@@
21+
22+
23+
.NOTPARALLEL: all
24+
25+
all: build_all
26+
27+
build_all:
28+
echo "$(MAVEN) package -DskipTests"
29+
set -o pipefail && $(MAVEN) package -DskipTests
30+
31+
clean:
32+
$(MAVEN) clean
33+
$(RM) -r target/*

tools/hibernate-dialect/README.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
Trafodion hibernate dialect
2+
===============================
3+
This is a tool for hibernate to use trafodion.
4+
This tool now support hibernate version 4.x .
5+
To use this tool, you should make all ,then load the jar file to your project,and add following config to you hibernate.cfg.xml file:
6+
7+
<property name="hibernate.dialect">org.hibernate.dialect.TrafodionDialect</property>
8+
9+
ABOUT HIBERNATE:
10+
11+
Hibernate ORM enables developers to more easily write applications whose data outlives the application process. As an Object/Relational Mapping (ORM) framework, Hibernate is concerned with data persistence as it applies to relational databases (via JDBC).
12+
13+
To build:
14+
>cd <your path to hibernate dialect>
15+
> make all
16+

tools/hibernate-dialect/pom.xml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4+
5+
<!--
6+
* @@@ START COPYRIGHT @@@
7+
*
8+
* Licensed to the Apache Software Foundation (ASF) under one
9+
* or more contributor license agreements. See the NOTICE file
10+
* distributed with this work for additional information
11+
* regarding copyright ownership. The ASF licenses this file
12+
* to you under the Apache License, Version 2.0 (the
13+
* "License"); you may not use this file except in compliance
14+
* with the License. You may obtain a copy of the License at
15+
*
16+
* http://www.apache.org/licenses/LICENSE-2.0
17+
*
18+
* Unless required by applicable law or agreed to in writing,
19+
* software distributed under the License is distributed on an
20+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
21+
* KIND, either express or implied. See the License for the
22+
* specific language governing permissions and limitations
23+
* under the License.
24+
*
25+
* @@@ END COPYRIGHT @@@
26+
-->
27+
28+
<modelVersion>4.0.0</modelVersion>
29+
30+
<groupId>org.trafodion</groupId>
31+
<artifactId>hibernate-dialect</artifactId>
32+
<version>${env.TRAFODION_VER}</version>
33+
<packaging>jar</packaging>
34+
35+
<name>Hibernate dialect tool jar</name>
36+
<url>http://wiki.trafodion.org</url>
37+
38+
<properties>
39+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
40+
</properties>
41+
42+
<dependencies>
43+
<dependency>
44+
<groupId>junit</groupId>
45+
<artifactId>junit</artifactId>
46+
<version>3.8.1</version>
47+
<scope>test</scope>
48+
</dependency>
49+
<dependency>
50+
<groupId>org.hibernate</groupId>
51+
<artifactId>hibernate-core</artifactId>
52+
<version>4.3.10.Final</version>
53+
</dependency>
54+
</dependencies>
55+
</project>

0 commit comments

Comments
 (0)