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

Commit

Permalink
Add hibernate dialect support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Goodnamewastakenbydog committed Jan 22, 2018
1 parent d15b5b6 commit 8d907de
Show file tree
Hide file tree
Showing 5 changed files with 398 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tools/hibernate-dialect/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.classpath
.project
.settings
mvn.out
target/*
/target/
*.log
/LICENSE
/NOTICE
33 changes: 33 additions & 0 deletions tools/hibernate-dialect/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# @@@ START COPYRIGHT @@@
# #
# # Licensed to the Apache Software Foundation (ASF) under one
# # or more contributor license agreements. See the NOTICE file
# # distributed with this work for additional information
# # regarding copyright ownership. The ASF licenses this file
# # to you under the Apache License, Version 2.0 (the
# # "License"); you may not use this file except in compliance
# # with the License. You may obtain a copy of the License at
# #
# # http://www.apache.org/licenses/LICENSE-2.0
# #
# # Unless required by applicable law or agreed to in writing,
# # software distributed under the License is distributed on an
# # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# # KIND, either express or implied. See the License for the
# # specific language governing permissions and limitations
# # under the License.
# #
# # @@@ END COPYRIGHT @@@


.NOTPARALLEL: all

all: build_all

build_all:
echo "$(MAVEN) package -DskipTests"
set -o pipefail && $(MAVEN) package -DskipTests

clean:
$(MAVEN) clean
$(RM) -r target/*
16 changes: 16 additions & 0 deletions tools/hibernate-dialect/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Trafodion hibernate dialect
===============================
This is a tool for hibernate to use trafodion.
This tool now support hibernate version 4.x .
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:

<property name="hibernate.dialect">org.hibernate.dialect.TrafodionDialect</property>

ABOUT HIBERNATE:

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).

To build:
>cd <your path to hibernate dialect>
> make all

55 changes: 55 additions & 0 deletions tools/hibernate-dialect/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<!--
* @@@ START COPYRIGHT @@@
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
* @@@ END COPYRIGHT @@@
-->

<modelVersion>4.0.0</modelVersion>

<groupId>org.trafodion</groupId>
<artifactId>hibernate-dialect</artifactId>
<version>${env.TRAFODION_VER}</version>
<packaging>jar</packaging>

<name>Hibernate dialect tool jar</name>
<url>http://wiki.trafodion.org</url>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.10.Final</version>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit 8d907de

Please sign in to comment.