This repository has been archived by the owner on Jun 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
[TRAFODION-2920]Add hibernate dialect support. #1407
Open
xlloveyun
wants to merge
1
commit into
apache:master
Choose a base branch
from
xlloveyun:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
.classpath | ||
.project | ||
.settings | ||
mvn.out | ||
target/* | ||
/target/ | ||
*.log | ||
/LICENSE | ||
/NOTICE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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). | ||
|
||
benefit: | ||
|
||
Hibernate is one of the most common ORM frameworks and has a very high rate of use in the Java Web project, supporting it to improve the usability of trafodion in OLTP. | ||
|
||
To build: | ||
>cd <your path to hibernate dialect> | ||
> make all | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
License head is required for every file.