Compare commits
10 Commits
1028403e66
...
ff2ecfd1aa
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ff2ecfd1aa | ||
|
|
5db7bd6206 | ||
|
|
34c71f86bd | ||
|
|
4d8f114cd0 | ||
|
|
2a1fc51336 | ||
|
|
da9512fc51 | ||
|
|
d3c029f5b6 | ||
|
|
891e0d3ccb | ||
|
|
c022737917 | ||
|
|
d3f98147bc |
19
Bundle-Description-Name.txt
Normal file
19
Bundle-Description-Name.txt
Normal file
@ -0,0 +1,19 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Description>hibernate ${m}</Bundle-Description>
|
||||
<Bundle-SymbolicName>org.hibernate.${m}</Bundle-SymbolicName>
|
||||
<Bundle-Name>hibernate-${m}</Bundle-Name>
|
||||
<Bundle-Vendor>Hibernate.org</Bundle-Vendor>
|
||||
<Bundle-Version>${project.version}</Bundle-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
19
Bundle-Description.txt
Normal file
19
Bundle-Description.txt
Normal file
@ -0,0 +1,19 @@
|
||||
<extensions>true</extensions>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Bundle-Description>hibernate core</Bundle-Description>
|
||||
<Bundle-SymbolicName>org.hibernate.core</Bundle-SymbolicName>
|
||||
<Bundle-Name>hibernate-core</Bundle-Name>
|
||||
<Bundle-Vendor>Hibernate.org</Bundle-Vendor>
|
||||
<Bundle-Version>${project.version}</Bundle-Version>
|
||||
</instructions>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>bundle-manifest</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
48
CVE-2019-14900.patch
Normal file
48
CVE-2019-14900.patch
Normal file
@ -0,0 +1,48 @@
|
||||
From 64a0cec764bfdd93c5e3d57e9fc342bcc9824ea3 Mon Sep 17 00:00:00 2001
|
||||
From: wang_yue111 <648774160@qq.com>
|
||||
Date: Fri, 19 Mar 2021 11:45:31 +0800
|
||||
Subject: [PATCH] fix CVE-2019-14900
|
||||
|
||||
---
|
||||
.../expression/LiteralExpression.java | 20 +++++++++++++------
|
||||
1 file changed, 14 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/LiteralExpression.java b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/LiteralExpression.java
|
||||
index ac485b4..6125363 100644
|
||||
--- a/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/LiteralExpression.java
|
||||
+++ b/hibernate-entitymanager/src/main/java/org/hibernate/jpa/criteria/expression/LiteralExpression.java
|
||||
@@ -58,17 +58,25 @@ public class LiteralExpression<T> extends ExpressionImpl<T> implements Serializa
|
||||
return ':' + parameterName;
|
||||
}
|
||||
|
||||
+ private String escapeLiteral(String literal) {
|
||||
+ return literal.replace("'", "''");
|
||||
+ }
|
||||
+
|
||||
+ private String inlineLiteral(String literal) {
|
||||
+ return String.format( "\'%s\'", escapeLiteral( literal) );
|
||||
+ }
|
||||
+
|
||||
@SuppressWarnings({ "unchecked" })
|
||||
public String renderProjection(RenderingContext renderingContext) {
|
||||
+ if ( ValueHandlerFactory.isCharacter( literal ) ) {
|
||||
+ // In case literal is a Character, pass literal.toString() as the argument.
|
||||
+ return inlineLiteral( literal.toString() );
|
||||
+ }
|
||||
+
|
||||
// some drivers/servers do not like parameters in the select clause
|
||||
final ValueHandlerFactory.ValueHandler handler =
|
||||
ValueHandlerFactory.determineAppropriateHandler( literal.getClass() );
|
||||
- if ( ValueHandlerFactory.isCharacter( literal ) ) {
|
||||
- return '\'' + handler.render( literal ) + '\'';
|
||||
- }
|
||||
- else {
|
||||
- return handler.render( literal );
|
||||
- }
|
||||
+ return handler.render( literal );
|
||||
}
|
||||
|
||||
@Override
|
||||
--
|
||||
2.23.0
|
||||
|
||||
384
CVE-2020-25638.patch
Normal file
384
CVE-2020-25638.patch
Normal file
@ -0,0 +1,384 @@
|
||||
From 0a7b54e0313d840af3dc21fa122f7707c8b35c20 Mon Sep 17 00:00:00 2001
|
||||
From: zhangtao2020 <18066722603@163.com>
|
||||
Date: Sat, 12 Dec 2020 18:40:37 +0800
|
||||
Subject: [PATCH] CVE-2020-25638
|
||||
|
||||
---
|
||||
.../java/org/hibernate/dialect/Dialect.java | 11 ++
|
||||
.../internal/SelectStatementBuilder.java | 2 +-
|
||||
.../main/java/org/hibernate/sql/Delete.java | 3 +-
|
||||
.../main/java/org/hibernate/sql/Insert.java | 2 +-
|
||||
.../java/org/hibernate/sql/InsertSelect.java | 2 +-
|
||||
.../java/org/hibernate/sql/QuerySelect.java | 2 +-
|
||||
.../main/java/org/hibernate/sql/Select.java | 2 +-
|
||||
.../java/org/hibernate/sql/SimpleSelect.java | 2 +-
|
||||
.../main/java/org/hibernate/sql/Update.java | 2 +-
|
||||
.../hibernate/test/comments/TestEntity.java | 46 ++++++++
|
||||
.../hibernate/test/comments/TestEntity2.java | 37 ++++++
|
||||
.../test/comments/UseSqlCommentTest.java | 111 ++++++++++++++++++
|
||||
12 files changed, 214 insertions(+), 8 deletions(-)
|
||||
create mode 100644 hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity.java
|
||||
create mode 100644 hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity2.java
|
||||
create mode 100644 hibernate-core/src/test/java/org/hibernate/test/comments/UseSqlCommentTest.java
|
||||
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
|
||||
index fd286e3..8d3ded8 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
|
||||
@@ -24,6 +24,7 @@ import java.util.Locale;
|
||||
import java.util.Map;
|
||||
import java.util.Properties;
|
||||
import java.util.Set;
|
||||
+import java.util.regex.Pattern;
|
||||
|
||||
import org.hibernate.HibernateException;
|
||||
import org.hibernate.LockMode;
|
||||
@@ -140,6 +141,9 @@ public abstract class Dialect implements ConversionContext {
|
||||
*/
|
||||
public static final String CLOSED_QUOTE = "`\"]";
|
||||
|
||||
+ private static final Pattern ESCAPE_CLOSING_COMMENT_PATTERN = Pattern.compile( "\\*/" );
|
||||
+ private static final Pattern ESCAPE_OPENING_COMMENT_PATTERN = Pattern.compile( "/\\*" );
|
||||
+
|
||||
private final TypeNames typeNames = new TypeNames();
|
||||
private final TypeNames hibernateTypeNames = new TypeNames();
|
||||
|
||||
@@ -2866,4 +2870,11 @@ public abstract class Dialect implements ConversionContext {
|
||||
public boolean supportsNamedParameters(DatabaseMetaData databaseMetaData) throws SQLException {
|
||||
return databaseMetaData != null && databaseMetaData.supportsNamedParameters();
|
||||
}
|
||||
+ public static String escapeComment(String comment) {
|
||||
+ if ( StringHelper.isNotEmpty( comment ) ) {
|
||||
+ final String escaped = ESCAPE_CLOSING_COMMENT_PATTERN.matcher( comment ).replaceAll( "*\\\\/" );
|
||||
+ return ESCAPE_OPENING_COMMENT_PATTERN.matcher( escaped ).replaceAll( "/\\\\*" );
|
||||
+ }
|
||||
+ return comment;
|
||||
+ }
|
||||
}
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/query/internal/SelectStatementBuilder.java b/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/query/internal/SelectStatementBuilder.java
|
||||
index 3d2b1d8..41ebbab 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/query/internal/SelectStatementBuilder.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/loader/plan/exec/query/internal/SelectStatementBuilder.java
|
||||
@@ -187,7 +187,7 @@ public class SelectStatementBuilder {
|
||||
StringBuilder buf = new StringBuilder( guesstimatedBufferSize );
|
||||
|
||||
if ( StringHelper.isNotEmpty( comment ) ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
|
||||
buf.append( "select " )
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/Delete.java b/hibernate-core/src/main/java/org/hibernate/sql/Delete.java
|
||||
index a6badc0..3bd50df 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/Delete.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/Delete.java
|
||||
@@ -8,6 +8,7 @@ package org.hibernate.sql;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
+import org.hibernate.dialect.Dialect;
|
||||
|
||||
/**
|
||||
* An SQL <tt>DELETE</tt> statement
|
||||
@@ -36,7 +37,7 @@ public class Delete {
|
||||
public String toStatementString() {
|
||||
StringBuilder buf = new StringBuilder( tableName.length() + 10 );
|
||||
if ( comment!=null ) {
|
||||
- buf.append( "/* " ).append(comment).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment( comment ) ).append( " */ " );
|
||||
}
|
||||
buf.append( "delete from " ).append(tableName);
|
||||
if ( where != null || !primaryKeyColumns.isEmpty() || versionColumnName != null ) {
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/Insert.java b/hibernate-core/src/main/java/org/hibernate/sql/Insert.java
|
||||
index 49d828c..ed15af8 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/Insert.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/Insert.java
|
||||
@@ -90,7 +90,7 @@ public class Insert {
|
||||
public String toStatementString() {
|
||||
StringBuilder buf = new StringBuilder( columns.size()*15 + tableName.length() + 10 );
|
||||
if ( comment != null ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment( comment ) ).append( " */ " );
|
||||
}
|
||||
buf.append("insert into ")
|
||||
.append(tableName);
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/InsertSelect.java b/hibernate-core/src/main/java/org/hibernate/sql/InsertSelect.java
|
||||
index 387ee1d..a8038e6 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/InsertSelect.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/InsertSelect.java
|
||||
@@ -65,7 +65,7 @@ public class InsertSelect {
|
||||
|
||||
StringBuilder buf = new StringBuilder( (columnNames.size() * 15) + tableName.length() + 10 );
|
||||
if ( comment!=null ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
buf.append( "insert into " ).append( tableName );
|
||||
if ( !columnNames.isEmpty() ) {
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/QuerySelect.java b/hibernate-core/src/main/java/org/hibernate/sql/QuerySelect.java
|
||||
index 649d973..7d45a3e 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/QuerySelect.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/QuerySelect.java
|
||||
@@ -126,7 +126,7 @@ public class QuerySelect {
|
||||
public String toQueryString() {
|
||||
StringBuilder buf = new StringBuilder( 50 );
|
||||
if ( comment != null ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
buf.append( "select " );
|
||||
if ( distinct ) {
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/Select.java b/hibernate-core/src/main/java/org/hibernate/sql/Select.java
|
||||
index e8b0aa4..cf1e6e3 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/Select.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/Select.java
|
||||
@@ -40,7 +40,7 @@ public class Select {
|
||||
public String toStatementString() {
|
||||
StringBuilder buf = new StringBuilder(guesstimatedBufferSize);
|
||||
if ( StringHelper.isNotEmpty(comment) ) {
|
||||
- buf.append("/* ").append(comment).append(" */ ");
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
|
||||
buf.append("select ").append(selectClause)
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/SimpleSelect.java b/hibernate-core/src/main/java/org/hibernate/sql/SimpleSelect.java
|
||||
index 51fbc86..402cd01 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/SimpleSelect.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/SimpleSelect.java
|
||||
@@ -143,7 +143,7 @@ public class SimpleSelect {
|
||||
);
|
||||
|
||||
if ( comment != null ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
|
||||
buf.append( "select " );
|
||||
diff --git a/hibernate-core/src/main/java/org/hibernate/sql/Update.java b/hibernate-core/src/main/java/org/hibernate/sql/Update.java
|
||||
index 93611d7..c080400 100644
|
||||
--- a/hibernate-core/src/main/java/org/hibernate/sql/Update.java
|
||||
+++ b/hibernate-core/src/main/java/org/hibernate/sql/Update.java
|
||||
@@ -166,7 +166,7 @@ public class Update {
|
||||
public String toStatementString() {
|
||||
StringBuilder buf = new StringBuilder( (columns.size() * 15) + tableName.length() + 10 );
|
||||
if ( comment!=null ) {
|
||||
- buf.append( "/* " ).append( comment ).append( " */ " );
|
||||
+ buf.append( "/* " ).append( Dialect.escapeComment(comment)).append( " */ " );
|
||||
}
|
||||
buf.append( "update " ).append( tableName ).append( " set " );
|
||||
boolean assignmentsAppended = false;
|
||||
diff --git a/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity.java b/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity.java
|
||||
new file mode 100644
|
||||
index 0000000..7c425be
|
||||
--- /dev/null
|
||||
+++ b/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity.java
|
||||
@@ -0,0 +1,46 @@
|
||||
+/*
|
||||
+ * Hibernate, Relational Persistence for Idiomatic Java
|
||||
+ *
|
||||
+ * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
+ * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
+ */
|
||||
+package org.hibernate.test.comments;
|
||||
+
|
||||
+import javax.persistence.Entity;
|
||||
+import javax.persistence.Id;
|
||||
+
|
||||
+/**
|
||||
+ * @author Andrea Boriero
|
||||
+ */
|
||||
+@Entity
|
||||
+public class TestEntity {
|
||||
+ @Id
|
||||
+ private String id;
|
||||
+
|
||||
+ private String value;
|
||||
+
|
||||
+ public TestEntity() {
|
||||
+
|
||||
+ }
|
||||
+
|
||||
+ public TestEntity(String id, String value) {
|
||||
+ this.id = id;
|
||||
+ this.value = value;
|
||||
+ }
|
||||
+
|
||||
+ public String getId() {
|
||||
+ return id;
|
||||
+ }
|
||||
+
|
||||
+ public void setId(String id) {
|
||||
+ this.id = id;
|
||||
+ }
|
||||
+
|
||||
+ public String getValue() {
|
||||
+ return value;
|
||||
+ }
|
||||
+
|
||||
+ public void setValue(String value) {
|
||||
+ this.value = value;
|
||||
+ }
|
||||
+}
|
||||
diff --git a/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity2.java b/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity2.java
|
||||
new file mode 100644
|
||||
index 0000000..58b626d
|
||||
--- /dev/null
|
||||
+++ b/hibernate-core/src/test/java/org/hibernate/test/comments/TestEntity2.java
|
||||
@@ -0,0 +1,37 @@
|
||||
+/*
|
||||
+ * Hibernate, Relational Persistence for Idiomatic Java
|
||||
+ *
|
||||
+ * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
+ * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
+ */
|
||||
+package org.hibernate.test.comments;
|
||||
+
|
||||
+import javax.persistence.Entity;
|
||||
+import javax.persistence.Id;
|
||||
+
|
||||
+/**
|
||||
+ * @author Andrea Boriero
|
||||
+ */
|
||||
+@Entity
|
||||
+public class TestEntity2 {
|
||||
+ @Id
|
||||
+ private String id;
|
||||
+
|
||||
+ private String value;
|
||||
+
|
||||
+ public String getId() {
|
||||
+ return id;
|
||||
+ }
|
||||
+
|
||||
+ public void setId(String id) {
|
||||
+ this.id = id;
|
||||
+ }
|
||||
+
|
||||
+ public String getValue() {
|
||||
+ return value;
|
||||
+ }
|
||||
+
|
||||
+ public void setValue(String value) {
|
||||
+ this.value = value;
|
||||
+ }
|
||||
+}
|
||||
diff --git a/hibernate-core/src/test/java/org/hibernate/test/comments/UseSqlCommentTest.java b/hibernate-core/src/test/java/org/hibernate/test/comments/UseSqlCommentTest.java
|
||||
new file mode 100644
|
||||
index 0000000..2bd6adf
|
||||
--- /dev/null
|
||||
+++ b/hibernate-core/src/test/java/org/hibernate/test/comments/UseSqlCommentTest.java
|
||||
@@ -0,0 +1,111 @@
|
||||
+/*
|
||||
+ * Hibernate, Relational Persistence for Idiomatic Java
|
||||
+ *
|
||||
+ * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
|
||||
+ * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
|
||||
+ */
|
||||
+package org.hibernate.test.comments;
|
||||
+
|
||||
+import java.util.List;
|
||||
+import java.util.Map;
|
||||
+import javax.persistence.EntityManager;
|
||||
+import javax.persistence.TypedQuery;
|
||||
+import javax.persistence.criteria.CompoundSelection;
|
||||
+import javax.persistence.criteria.CriteriaBuilder;
|
||||
+import javax.persistence.criteria.CriteriaQuery;
|
||||
+import javax.persistence.criteria.Path;
|
||||
+import javax.persistence.criteria.Root;
|
||||
+
|
||||
+import org.hibernate.cfg.AvailableSettings;
|
||||
+import org.hibernate.jpa.test.BaseEntityManagerFunctionalTestCase;
|
||||
+
|
||||
+import org.junit.Before;
|
||||
+import org.junit.Test;
|
||||
+
|
||||
+import static org.hamcrest.CoreMatchers.is;
|
||||
+import static org.hibernate.testing.transaction.TransactionUtil.doInJPA;
|
||||
+import static org.junit.Assert.assertThat;
|
||||
+
|
||||
+/**
|
||||
+ * @author Andrea Boriero
|
||||
+ */
|
||||
+public class UseSqlCommentTest extends BaseEntityManagerFunctionalTestCase {
|
||||
+
|
||||
+ @Override
|
||||
+ protected Class<?>[] getAnnotatedClasses() {
|
||||
+ return new Class[] { TestEntity.class, TestEntity2.class };
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ protected void addMappings(Map settings) {
|
||||
+ settings.put( AvailableSettings.USE_SQL_COMMENTS, "true" );
|
||||
+ settings.put( AvailableSettings.FORMAT_SQL, "false" );
|
||||
+ }
|
||||
+
|
||||
+ @Before
|
||||
+ public void setUp() {
|
||||
+ doInJPA( this::entityManagerFactory, entityManager -> {
|
||||
+ TestEntity testEntity = new TestEntity();
|
||||
+ testEntity.setId( "test1" );
|
||||
+ testEntity.setValue( "value1" );
|
||||
+ entityManager.persist( testEntity );
|
||||
+
|
||||
+ TestEntity2 testEntity2 = new TestEntity2();
|
||||
+ testEntity2.setId( "test2" );
|
||||
+ testEntity2.setValue( "value2" );
|
||||
+ entityManager.persist( testEntity2 );
|
||||
+ } );
|
||||
+ }
|
||||
+
|
||||
+ @Test
|
||||
+ public void testIt() {
|
||||
+ String appendLiteral = "*/select id as col_0_0_,value as col_1_0_ from testEntity2 where 1=1 or id=?--/*";
|
||||
+ doInJPA( this::entityManagerFactory, entityManager -> {
|
||||
+
|
||||
+ List<TestEntity> result = findUsingQuery( "test1", appendLiteral, entityManager );
|
||||
+
|
||||
+ TestEntity test1 = result.get( 0 );
|
||||
+ assertThat( test1.getValue(), is( appendLiteral ) );
|
||||
+ } );
|
||||
+
|
||||
+ doInJPA( this::entityManagerFactory, entityManager -> {
|
||||
+
|
||||
+ List<TestEntity> result = findUsingCriteria( "test1", appendLiteral, entityManager );
|
||||
+
|
||||
+ TestEntity test1 = result.get( 0 );
|
||||
+ assertThat( test1.getValue(), is( appendLiteral ) );
|
||||
+ } );
|
||||
+ }
|
||||
+
|
||||
+ public List<TestEntity> findUsingCriteria(String id, String appendLiteral, EntityManager entityManager) {
|
||||
+ CriteriaBuilder builder = entityManager.getCriteriaBuilder();
|
||||
+ CriteriaQuery<TestEntity> criteria = builder.createQuery( TestEntity.class );
|
||||
+ Root<TestEntity> root = criteria.from( TestEntity.class );
|
||||
+
|
||||
+ Path<Object> idPath = root.get( "id" );
|
||||
+ CompoundSelection<TestEntity> selection = builder.construct(
|
||||
+ TestEntity.class,
|
||||
+ idPath,
|
||||
+ builder.literal( appendLiteral )
|
||||
+ );
|
||||
+ criteria.select( selection );
|
||||
+
|
||||
+ criteria.where( builder.equal( idPath, builder.parameter( String.class, "where_id" ) ) );
|
||||
+
|
||||
+ TypedQuery<TestEntity> query = entityManager.createQuery( criteria );
|
||||
+ query.setParameter( "where_id", id );
|
||||
+ return query.getResultList();
|
||||
+ }
|
||||
+
|
||||
+ public List<TestEntity> findUsingQuery(String id, String appendLiteral, EntityManager entityManager) {
|
||||
+ TypedQuery<TestEntity> query =
|
||||
+ entityManager.createQuery(
|
||||
+ "select new org.hibernate.test.comments.TestEntity(id, '"
|
||||
+ + appendLiteral.replace( "'", "''" )
|
||||
+ + "') from TestEntity where id=:where_id",
|
||||
+ TestEntity.class
|
||||
+ );
|
||||
+ query.setParameter( "where_id", id );
|
||||
+ return query.getResultList();
|
||||
+ }
|
||||
+}
|
||||
--
|
||||
2.27.0
|
||||
|
||||
15
Implementation.txt
Normal file
15
Implementation.txt
Normal file
@ -0,0 +1,15 @@
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
<manifest>
|
||||
<addClasspath>false</addClasspath>
|
||||
<mainClass>org.hibernate.Version</mainClass>
|
||||
</manifest>
|
||||
<manifestEntries>
|
||||
<Implementation-Url>http://hibernate.org</Implementation-Url>
|
||||
<Implementation-Vendor>Hibernate.org</Implementation-Vendor>
|
||||
<Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
|
||||
<Implementation-Version>${project.version}</Implementation-Version>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
202
LICENSE-2.0.txt
Normal file
202
LICENSE-2.0.txt
Normal file
@ -0,0 +1,202 @@
|
||||
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright [yyyy] [name of copyright owner]
|
||||
|
||||
Licensed 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.
|
||||
10
grammars.txt
Normal file
10
grammars.txt
Normal file
@ -0,0 +1,10 @@
|
||||
<configuration>
|
||||
<grammars>*</grammars>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
BIN
hibernate-5.0.10.Final.tar.gz
Normal file
BIN
hibernate-5.0.10.Final.tar.gz
Normal file
Binary file not shown.
59
hibernate-c3p0-5.0.10.Final.pom
Normal file
59
hibernate-c3p0-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-c3p0</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.mchange</groupId>
|
||||
<artifactId>c3p0</artifactId>
|
||||
<version>0.9.2.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate/c3p0 Integration</name>
|
||||
<description>Integration for c3p0 Connection pooling into Hibernate O/RM</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
51
hibernate-configuration.txt
Normal file
51
hibernate-configuration.txt
Normal file
@ -0,0 +1,51 @@
|
||||
|
||||
<executions>
|
||||
<execution>
|
||||
<id>hibernate-configuration</id>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<schemaIncludes>
|
||||
<include>cfg/legacy-configuration-4.0.xsd</include>
|
||||
</schemaIncludes>
|
||||
<bindingIncludes>
|
||||
<include>hbm-configuration-bindings.xjb</include>
|
||||
</bindingIncludes>
|
||||
<generatePackage>org.hibernate.boot.jaxb.cfg.spi</generatePackage>
|
||||
<generateDirectory>${project.build.directory}/generated-sources/hibernate-configuration</generateDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>hibernate-mapping</id>
|
||||
<goals>
|
||||
<goal>generate</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<schemaIncludes>
|
||||
<include>mapping/legacy-mapping-4.0.xsd</include>
|
||||
</schemaIncludes>
|
||||
<bindingIncludes>
|
||||
<include>hbm-mapping-bindings.xjb</include>
|
||||
</bindingIncludes>
|
||||
<generatePackage>org.hibernate.boot.jaxb.hbm.spi</generatePackage>
|
||||
<generateDirectory>${project.build.directory}/generated-sources/hibernate-mapping</generateDirectory>
|
||||
<args>
|
||||
<arg>-Xinheritance</arg>
|
||||
<arg>-Xsimplify</arg>
|
||||
</args>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<schemaDirectory>src/main/resources/org/hibernate/xsd</schemaDirectory>
|
||||
<bindingDirectory>src/main/xjb</bindingDirectory>
|
||||
<extension>true</extension>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.jvnet.jaxb2_commons</groupId>
|
||||
<artifactId>jaxb2-basics</artifactId>
|
||||
<version>0.6.3</version>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</configuration>
|
||||
89
hibernate-core-5.0.10.Final.pom
Normal file
89
hibernate-core-5.0.10.Final.pom
Normal file
@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.javax.persistence</groupId>
|
||||
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||
<version>1.0.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.javassist</groupId>
|
||||
<artifactId>javassist</artifactId>
|
||||
<version>3.18.1-GA</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>antlr</groupId>
|
||||
<artifactId>antlr</artifactId>
|
||||
<version>2.7.7</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.geronimo.specs</groupId>
|
||||
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss</groupId>
|
||||
<artifactId>jandex</artifactId>
|
||||
<version>2.0.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.6.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.common</groupId>
|
||||
<artifactId>hibernate-commons-annotations</artifactId>
|
||||
<version>5.0.1.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Core Hibernate O/RM functionality</name>
|
||||
<description>The core O/RM functionality as provided by Hibernate</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
59
hibernate-ehcache-5.0.10.Final.pom
Normal file
59
hibernate-ehcache-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-ehcache</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sf.ehcache</groupId>
|
||||
<artifactId>ehcache-core</artifactId>
|
||||
<version>2.4.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate/Ehcache Integration</name>
|
||||
<description>Integration for Ehcache into Hibernate as a second-level caching service</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
83
hibernate-entitymanager-5.0.10.Final.pom
Normal file
83
hibernate-entitymanager-5.0.10.Final.pom
Normal file
@ -0,0 +1,83 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.6.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.common</groupId>
|
||||
<artifactId>hibernate-commons-annotations</artifactId>
|
||||
<version>5.0.1.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate.javax.persistence</groupId>
|
||||
<artifactId>hibernate-jpa-2.1-api</artifactId>
|
||||
<version>1.0.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.javassist</groupId>
|
||||
<artifactId>javassist</artifactId>
|
||||
<version>3.18.1-GA</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.geronimo.specs</groupId>
|
||||
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate JPA Support</name>
|
||||
<description>Hibernate O/RM implementation of the JPA specification</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
59
hibernate-envers-5.0.10.Final.pom
Normal file
59
hibernate-envers-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-envers</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>ENtity VERSioning support</name>
|
||||
<description>ENtity VERSioning support</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
59
hibernate-hikaricp-5.0.10.Final.pom
Normal file
59
hibernate-hikaricp-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-hikaricp</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.zaxxer</groupId>
|
||||
<artifactId>HikariCP-java6</artifactId>
|
||||
<version>2.3.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate/HikariCP Integration</name>
|
||||
<description>Integration for HikariCP into Hibernate O/RM</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
59
hibernate-infinispan-5.0.10.Final.pom
Normal file
59
hibernate-infinispan-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-infinispan</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.infinispan</groupId>
|
||||
<artifactId>infinispan-core</artifactId>
|
||||
<version>7.2.5.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate/Infinispan Integration</name>
|
||||
<description>Integration for Infinispan into Hibernate as a second-level caching service</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
53
hibernate-java8-5.0.10.Final.pom
Normal file
53
hibernate-java8-5.0.10.Final.pom
Normal file
@ -0,0 +1,53 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-java8</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Java8-specific Hibernate O/RM functionality</name>
|
||||
<description>Support for Java8-specific features - mainly Java8 Date/Time (JSR 310)</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
71
hibernate-osgi-5.0.10.Final.pom
Normal file
71
hibernate-osgi-5.0.10.Final.pom
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-osgi</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.core</artifactId>
|
||||
<version>4.3.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.osgi</groupId>
|
||||
<artifactId>org.osgi.compendium</artifactId>
|
||||
<version>4.3.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate OSGi Support</name>
|
||||
<description>Support for running Hibernate O/RM in OSGi environments</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
89
hibernate-parent-5.0.10.Final.pom
Normal file
89
hibernate-parent-5.0.10.Final.pom
Normal file
@ -0,0 +1,89 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-parent</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<packaging>pom</packaging>
|
||||
<name>Hibernate Parent</name>
|
||||
|
||||
<modules>
|
||||
<module>hibernate-c3p0</module>
|
||||
<module>hibernate-core</module>
|
||||
<module>hibernate-ehcache</module>
|
||||
<module>hibernate-entitymanager</module>
|
||||
<module>hibernate-envers</module>
|
||||
<module>hibernate-hikaricp</module>
|
||||
<module>hibernate-infinispan</module>
|
||||
<module>hibernate-java8</module>
|
||||
<module>hibernate-osgi</module>
|
||||
<module>hibernate-proxool</module>
|
||||
<module>hibernate-spatial</module>
|
||||
<module>hibernate-testing</module>
|
||||
</modules>
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<configuration>
|
||||
<encoding>UTF-8</encoding>
|
||||
<aggregate>true</aggregate>
|
||||
<breakiterator>true</breakiterator>
|
||||
<doctitle>Hibernate JavaDoc ${project.version}</doctitle>
|
||||
<header>Hibernate JavaDocs</header>
|
||||
<quiet>true</quiet>
|
||||
<stylesheetfile>${basedir}/shared/javadoc/stylesheet.css</stylesheetfile>
|
||||
<overview>${basedir}/shared/javadoc/overview.html</overview>
|
||||
<javadocDirectory>${basedir}/shared/javadoc</javadocDirectory>
|
||||
<excludePackageNames>*.jaxb.*:*.internal.log:org.hibernate.annotations:org.hibernate.cfg.*</excludePackageNames>
|
||||
<additionalparam>-Xdoclint:none</additionalparam>
|
||||
<groups>
|
||||
<group>
|
||||
<title>API</title>
|
||||
<packages>org.hibernate:org.hibernate.boot:org.hibernate.boot.model:org.hibernate.boot.model.naming:org.hibernate.boot.model.relational:org.hibernate.boot.registry:org.hibernate.boot.registry.selector:org.hibernate.cache:org.hibernate.cache.ehcache:org.hibernate.cache.ehcache.management.impl:org.hibernate.cache.infinispan:org.hibernate.cache.infinispan.access:org.hibernate.cache.infinispan.collection:org.hibernate.cache.infinispan.entity:org.hibernate.cache.infinispan.impl:org.hibernate.cache.infinispan.naturalid:org.hibernate.cache.infinispan.query:org.hibernate.cache.infinispan.timestamp:org.hibernate.cache.infinispan.tm:org.hibernate.cache.infinispan.util:org.hibernate.classic:org.hibernate.context:org.hibernate.criterion:org.hibernate.dialect:org.hibernate.dialect.function:org.hibernate.dialect.identity:org.hibernate.dialect.lock:org.hibernate.dialect.pagination:org.hibernate.dialect.unique:org.hibernate.ejb:org.hibernate.ejb.packaging:org.hibernate.engine:org.hibernate.engine.jdbc:org.hibernate.engine.jndi:org.hibernate.engine.profile:org.hibernate.envers:org.hibernate.envers.configuration:org.hibernate.envers.enhanced:org.hibernate.envers.exception:org.hibernate.envers.query:org.hibernate.envers.query.criteria:org.hibernate.envers.query.order:org.hibernate.envers.query.projection:org.hibernate.envers.strategy:org.hibernate.envers.tools:org.hibernate.exception:org.hibernate.id:org.hibernate.id.enhanced:org.hibernate.id.factory:org.hibernate.id.insert:org.hibernate.id.uuid:org.hibernate.jdbc:org.hibernate.jpa:org.hibernate.jpa.criteria:org.hibernate.jpa.criteria.compile:org.hibernate.jpa.criteria.expression:org.hibernate.jpa.criteria.expression.function:org.hibernate.jpa.criteria.path:org.hibernate.jpa.criteria.predicate:org.hibernate.loader:org.hibernate.loader.collection:org.hibernate.loader.collection.plan:org.hibernate.loader.criteria:org.hibernate.loader.custom:org.hibernate.loader.custom.sql:org.hibernate.loader.entity:org.hibernate.loader.entity.plan:org.hibernate.loader.hql:org.hibernate.lob:org.hibernate.mapping:org.hibernate.metadata:org.hibernate.osgi:org.hibernate.param:org.hibernate.persister.collection:org.hibernate.persister.entity:org.hibernate.pretty:org.hibernate.procedure:org.hibernate.proxy:org.hibernate.proxy.map:org.hibernate.proxy.pojo:org.hibernate.proxy.pojo.javassist:org.hibernate.resource.jdbc:org.hibernate.resource.transaction:org.hibernate.result:org.hibernate.service:org.hibernate.spatial:org.hibernate.spatial.criterion:org.hibernate.spatial.dialect.h2geodb:org.hibernate.spatial.dialect.mysql:org.hibernate.spatial.dialect.oracle:org.hibernate.spatial.dialect.oracle.criterion:org.hibernate.spatial.dialect.postgis:org.hibernate.spatial.dialect.sqlserver:org.hibernate.spatial.integration:org.hibernate.spatial.jts:org.hibernate.sql:org.hibernate.sql.ordering.antlr:org.hibernate.stat:org.hibernate.tool.enhance:org.hibernate.tool.hbm2ddl:org.hibernate.tool.instrument:org.hibernate.tool.instrument.javassist:org.hibernate.transform:org.hibernate.tuple:org.hibernate.tuple.component:org.hibernate.tuple.entity:org.hibernate.type:org.hibernate.type.descriptor:org.hibernate.type.descriptor.converter:org.hibernate.type.descriptor.java:org.hibernate.type.descriptor.sql:org.hibernate.usertype</packages>
|
||||
</group>
|
||||
<group>
|
||||
<title>SPI</title>
|
||||
<packages>*.spi.*</packages>
|
||||
</group>
|
||||
<group>
|
||||
<title>Internal</title>
|
||||
<packages>*.internal.*</packages>
|
||||
</group>
|
||||
<group>
|
||||
<title>Testing Support</title>
|
||||
<packages>org.hibernate.testing*</packages>
|
||||
</group>
|
||||
</groups>
|
||||
<links>
|
||||
<link>http://docs.oracle.com/javase/6/docs/api/</link>
|
||||
<link>http://docs.oracle.com/javaee/6/api/</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
<reporting>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>2.7</version>
|
||||
<reportSets>
|
||||
<reportSet>
|
||||
<reports>
|
||||
<report>javadoc</report>
|
||||
</reports>
|
||||
</reportSet>
|
||||
</reportSets>
|
||||
<configuration>
|
||||
<excludePackageNames>*.jaxb.*:*.internal.log</excludePackageNames>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</reporting>
|
||||
</project>
|
||||
59
hibernate-proxool-5.0.10.Final.pom
Normal file
59
hibernate-proxool-5.0.10.Final.pom
Normal file
@ -0,0 +1,59 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-proxool</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>proxool</groupId>
|
||||
<artifactId>proxool</artifactId>
|
||||
<version>0.8.3</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate/Proxool Integration</name>
|
||||
<description>Integration for Proxool Connection pooling into Hibernate O/RM</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
71
hibernate-spatial-5.0.10.Final.pom
Normal file
71
hibernate-spatial-5.0.10.Final.pom
Normal file
@ -0,0 +1,71 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-spatial</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>8.4-701.jdbc4</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.geolatte</groupId>
|
||||
<artifactId>geolatte-geom</artifactId>
|
||||
<version>1.0.4</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<version>1.6.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Integrate support for Spatial/GIS data into Hibernate O/RM</name>
|
||||
<description>Integrate support for Spatial/GIS data into Hibernate O/RM</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
101
hibernate-testing-5.0.10.Final.pom
Normal file
101
hibernate-testing-5.0.10.Final.pom
Normal file
@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-testing</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging</artifactId>
|
||||
<version>3.3.0.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-core</artifactId>
|
||||
<version>5.0.10.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.geronimo.specs</groupId>
|
||||
<artifactId>geronimo-jta_1.1_spec</artifactId>
|
||||
<version>1.1.1</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.11</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.byteman</groupId>
|
||||
<artifactId>byteman</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.byteman</groupId>
|
||||
<artifactId>byteman-install</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.byteman</groupId>
|
||||
<artifactId>byteman-bmunit</artifactId>
|
||||
<version>2.1.2</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.experlog</groupId>
|
||||
<artifactId>xapool</artifactId>
|
||||
<version>1.5.0</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.17</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.jbossts</groupId>
|
||||
<artifactId>jbossjta</artifactId>
|
||||
<version>4.16.4.Final</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<name>Hibernate ORM Testing</name>
|
||||
<description>Support for testing Hibernate ORM functionality</description>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>GNU Lesser General Public License</name>
|
||||
<url>http://www.gnu.org/licenses/lgpl-2.1.html</url>
|
||||
<comments>See discussion at http://hibernate.org/license for more details.</comments>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<url>http://hibernate.org</url>
|
||||
<organization>
|
||||
<name>Hibernate.org</name>
|
||||
<url>http://hibernate.org</url>
|
||||
</organization>
|
||||
<issueManagement>
|
||||
<system>jira</system>
|
||||
<url>https://hibernate.atlassian.net/browse/HHH</url>
|
||||
</issueManagement>
|
||||
<scm>
|
||||
<url>http://github.com/hibernate/hibernate-orm</url>
|
||||
<connection>scm:git:http://github.com/hibernate/hibernate-orm.git</connection>
|
||||
<developerConnection>scm:git:git@github.com:hibernate/hibernate-orm.git</developerConnection>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<id>hibernate-team</id>
|
||||
<name>The Hibernate Development Team</name>
|
||||
<organization>Hibernate.org</organization>
|
||||
<organizationUrl>http://hibernate.org</organizationUrl>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
184
hibernate.spec
Normal file
184
hibernate.spec
Normal file
@ -0,0 +1,184 @@
|
||||
%global namedreltag .Final
|
||||
%global namedversion %{version}%{?namedreltag}
|
||||
%global pom_url http://repo1.maven.org/maven2/org/hibernate
|
||||
|
||||
Name: hibernate
|
||||
Summary: an easy-to-use and powerful object relational persistence framework for Java applications
|
||||
Version: 5.0.10
|
||||
Release: 10
|
||||
License: LGPLv2+ and ASL 2.0
|
||||
URL: http://www.hibernate.org/
|
||||
|
||||
Source0: https://github.com/hibernate/hibernate-orm/archive/%{version}/%{name}-%{namedversion}.tar.gz
|
||||
Source1: %{pom_url}/hibernate-c3p0/%{namedversion}/hibernate-c3p0-%{namedversion}.pom
|
||||
Source2: %{pom_url}/hibernate-core/%{namedversion}/hibernate-core-%{namedversion}.pom
|
||||
Source3: %{pom_url}/hibernate-ehcache/%{namedversion}/hibernate-ehcache-%{namedversion}.pom
|
||||
Source4: %{pom_url}/hibernate-entitymanager/%{namedversion}/hibernate-entitymanager-%{namedversion}.pom
|
||||
Source5: %{pom_url}/hibernate-envers/%{namedversion}/hibernate-envers-%{namedversion}.pom
|
||||
Source6: %{pom_url}/hibernate-hikaricp/%{namedversion}/hibernate-hikaricp-%{namedversion}.pom
|
||||
Source7: %{pom_url}/hibernate-infinispan/%{namedversion}/hibernate-infinispan-%{namedversion}.pom
|
||||
Source8: %{pom_url}/hibernate-java8/%{namedversion}/hibernate-java8-%{namedversion}.pom
|
||||
Source9: %{pom_url}/hibernate-osgi/%{namedversion}/hibernate-osgi-%{namedversion}.pom
|
||||
Source10: %{pom_url}/hibernate-proxool/%{namedversion}/hibernate-proxool-%{namedversion}.pom
|
||||
Source11: %{pom_url}/hibernate-spatial/%{namedversion}/hibernate-spatial-%{namedversion}.pom
|
||||
Source12: %{pom_url}/hibernate-testing/%{namedversion}/hibernate-testing-%{namedversion}.pom
|
||||
Source50: hibernate-parent-%{namedversion}.pom
|
||||
Source60: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
Source61: logging-processor.txt
|
||||
Source62: hibernate-configuration.txt
|
||||
Source63: grammars.txt
|
||||
Source64: target-source.txt
|
||||
Source65: Bundle-Description.txt
|
||||
Source66: Implementation.txt
|
||||
Source67: Bundle-Description-Name.txt
|
||||
Source68: manifestFile.txt
|
||||
|
||||
Patch0000: CVE-2020-25638.patch
|
||||
Patch0001: CVE-2019-14900.patch
|
||||
BuildRequires: maven-local mvn(antlr:antlr) mvn(com.experlog:xapool) mvn(com.fasterxml:classmate)
|
||||
BuildRequires: mvn(com.mchange:c3p0) mvn(com.zaxxer:HikariCP) mvn(dom4j:dom4j) mvn(java_cup:java_cup)
|
||||
BuildRequires: mvn(javax.enterprise:cdi-api) mvn(javax.validation:validation-api) mvn(junit:junit)
|
||||
BuildRequires: mvn(net.sf.ehcache:ehcache-core) mvn(org.apache.ant:ant) mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec) mvn(org.codehaus.mojo:antlr-maven-plugin)
|
||||
BuildRequires: mvn(org.bsc.maven:maven-processor-plugin) mvn(org.apache.geronimo.specs:specs-parent:pom:)
|
||||
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi) mvn(org.hibernate.common:hibernate-commons-annotations)
|
||||
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api) mvn(org.javassist:javassist)
|
||||
BuildRequires: mvn(org.jboss:jandex) mvn(org.jboss.byteman:byteman-bmunit) mvn(org.jboss.byteman:byteman)
|
||||
BuildRequires: mvn(org.jboss.byteman:byteman-install) mvn(org.jboss.logging:jboss-logging-annotations)
|
||||
BuildRequires: mvn(org.jboss.logging:jboss-logging) mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec)
|
||||
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor) mvn(org.jboss.narayana.jta:jta)
|
||||
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin) mvn(proxool:proxool)
|
||||
BuildRequires: mvn(org.rhq.helpers:rhq-pluginAnnotations) mvn(org.jvnet.jaxb2_commons:jaxb2-basics)
|
||||
|
||||
BuildRequires: mvn(org.infinispan:infinispan-core) >= 7.2.1
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
Hibernate is a powerful, high-performance, feature-rich and very popular ORM solution for Java.
|
||||
Hibernate facilitates development of persistent objects based on the common Java object model to
|
||||
mirror the underlying database structure. This approach progresses the business performance to
|
||||
some extent, advances development efficiency exceedingly and obtains preferable economical
|
||||
efficiency and practicability.
|
||||
|
||||
Provides: %{name}-core = %{version}-%{release}
|
||||
Provides: %{name}-c3p0 = %{version}-%{release}
|
||||
Provides: %{name}-ehcache = %{version}-%{release}
|
||||
Provides: %{name}-entitymanager = %{version}-%{release}
|
||||
Provides: %{name}-envers = %{version}-%{release}
|
||||
Provides: %{name}-hikaricp = %{version}-%{release}
|
||||
Provides: %{name}-infinispan = %{version}-%{release}
|
||||
Provides: %{name}-java8 = %{version}-%{release}
|
||||
Provides: %{name}-osgi = %{version}-%{release}
|
||||
Provides: %{name}-parent = %{version}-%{release}
|
||||
Provides: %{name}-proxool = %{version}-%{release}
|
||||
Provides: %{name}-spatial = %{version}-%{release}
|
||||
Provides: %{name}-testing = %{version}-%{release}
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
|
||||
Obsoletes: %{name}-core < %{version}-%{release}
|
||||
Obsoletes: %{name}-c3p0 < %{version}-%{release}
|
||||
Obsoletes: %{name}-ehcache < %{version}-%{release}
|
||||
Obsoletes: %{name}-entitymanager < %{version}-%{release}
|
||||
Obsoletes: %{name}-envers < %{version}-%{release}
|
||||
Obsoletes: %{name}-hikaricp < %{version}-%{release}
|
||||
Obsoletes: %{name}-infinispan < %{version}-%{release}
|
||||
Obsoletes: %{name}-java8 < %{version}-%{release}
|
||||
Obsoletes: %{name}-osgi < %{version}-%{release}
|
||||
Obsoletes: %{name}-parent < %{version}-%{release}
|
||||
Obsoletes: %{name}-proxool < %{version}-%{release}
|
||||
Obsoletes: %{name}-spatial < %{version}-%{release}
|
||||
Obsoletes: %{name}-testing < %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n %{name}-orm-%{version}
|
||||
find . -name "*.jar" -delete
|
||||
find . -name "*.class" -delete
|
||||
rm -r documentation/*
|
||||
|
||||
cp -p %{SOURCE1} hibernate-c3p0/pom.xml
|
||||
cp -p %{SOURCE2} hibernate-core/pom.xml
|
||||
cp -p %{SOURCE3} hibernate-ehcache/pom.xml
|
||||
cp -p %{SOURCE4} hibernate-entitymanager/pom.xml
|
||||
cp -p %{SOURCE5} hibernate-envers/pom.xml
|
||||
cp -p %{SOURCE6} hibernate-hikaricp/pom.xml
|
||||
cp -p %{SOURCE7} hibernate-infinispan/pom.xml
|
||||
cp -p %{SOURCE8} hibernate-java8/pom.xml
|
||||
cp -p %{SOURCE9} hibernate-osgi/pom.xml
|
||||
cp -p %{SOURCE10} hibernate-proxool/pom.xml
|
||||
cp -p %{SOURCE11} hibernate-spatial/pom.xml
|
||||
cp -p %{SOURCE12} hibernate-testing/pom.xml
|
||||
cp -p %{SOURCE50} pom.xml
|
||||
cp -p %{SOURCE60} .
|
||||
sed -i 's/\r//' LICENSE-2.0.txt
|
||||
|
||||
for m in entitymanager envers core; do
|
||||
%pom_add_plugin org.bsc.maven:maven-processor-plugin:2.2.4 hibernate-${m} "`cat %{SOURCE61}`"
|
||||
done
|
||||
|
||||
pushd hibernate-core
|
||||
|
||||
%pom_add_plugin "org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.12.3" . "`cat %{SOURCE62}`"
|
||||
%pom_add_plugin "org.codehaus.mojo:antlr-maven-plugin:2.2" . "`cat %{SOURCE63}`"
|
||||
%pom_add_plugin "org.apache.maven.plugins:maven-compiler-plugin:3.3" . "`cat %{SOURCE64}`"
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "`cat %{SOURCE65}`"
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 . "`cat %{SOURCE66}`"
|
||||
%pom_add_dep "com.fasterxml:classmate:1.1.0"
|
||||
%pom_add_dep "javax.validation:validation-api:1.1.0.Final"
|
||||
%pom_add_dep "org.apache.ant:ant:1.9.4:provided"
|
||||
%pom_add_dep "org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.2.Final"
|
||||
%pom_add_dep "junit:junit:4.12:test"
|
||||
%pom_add_dep "org.hibernate:hibernate-testing:%{namedversion}:test"
|
||||
|
||||
popd
|
||||
|
||||
%pom_add_dep "javax.enterprise:cdi-api:1.2" hibernate-entitymanager
|
||||
%pom_change_dep "com.zaxxer:HikariCP-java6" "com.zaxxer:HikariCP:2.4.0" hibernate-hikaricp
|
||||
%pom_change_dep "org.osgi:org.osgi.core" "org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200" hibernate-osgi
|
||||
%pom_remove_dep "org.osgi:org.osgi.compendium" hibernate-osgi
|
||||
%pom_change_dep "org.jboss.jbossts:jbossjta" "org.jboss.narayana.jta:jta" hibernate-testing
|
||||
|
||||
for m in c3p0 ehcache entitymanager envers hikaricp infinispan java8 osgi proxool spatial testing; do
|
||||
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 hibernate-${m} "`cat %{SOURCE67}`"
|
||||
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 hibernate-${m} "`cat %{SOURCE68}`"
|
||||
done
|
||||
|
||||
for f in $(grep -e 'Pedersen\|Lichtmaier\|Chanfreau\|Benke\|Carlos\|CREATE\ SCHEMA' --include *.java -r -l | sort | uniq); do
|
||||
native2ascii -encoding UTF8 ${f} ${f}
|
||||
done
|
||||
|
||||
%pom_disable_module hibernate-spatial
|
||||
|
||||
%build
|
||||
%if "%{_arch}" == "riscv64"
|
||||
export JAVA_TOOL_OPTIONS="-Xmx4096m"
|
||||
%endif
|
||||
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files
|
||||
%dir %{_datadir}
|
||||
%{_datadir}/*
|
||||
%doc changelog.txt README.md migration-guide.adoc
|
||||
%license lgpl.txt LICENSE-2.0.txt
|
||||
%doc hibernate-osgi/README.md
|
||||
|
||||
%changelog
|
||||
* Wed Apr 10 2024 Dingli Zhang <dingli@iscas.ac.cn> - 5.0.10-10
|
||||
- Add -Xmx4096m for riscv64
|
||||
|
||||
* Wed Nov 9 2022 liyanan <liyanan32@h-partners.com> - 5.0.10-9
|
||||
- Change source
|
||||
|
||||
* Thu Mar 18 2021 wangyue<wangyue92@huawei.com> 5.0.10-8
|
||||
- fix CVE-2019-14900
|
||||
|
||||
* Sat Dec 12 2020 zhangtao<zhangtao221@huawei.com> - 5.0.10-7
|
||||
- CVE-2020-25638
|
||||
|
||||
* Fri Dec 13 2019 caomeng<caomeng5@huawei.com> - 5.0.10-6
|
||||
- Package init
|
||||
|
||||
22
logging-processor.txt
Normal file
22
logging-processor.txt
Normal file
@ -0,0 +1,22 @@
|
||||
<configuration>
|
||||
<defaultOutputDirectory>\${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
|
||||
<processors>
|
||||
<processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
|
||||
</processors>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>process</id>
|
||||
<phase>generate-sources</phase>
|
||||
<goals>
|
||||
<goal>process</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.jboss.logging</groupId>
|
||||
<artifactId>jboss-logging-processor</artifactId>
|
||||
<version>2.0.1.Final</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
11
manifestFile.txt
Normal file
11
manifestFile.txt
Normal file
@ -0,0 +1,11 @@
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
<manifestEntries>
|
||||
<Implementation-Url>http://hibernate.org</Implementation-Url>
|
||||
<Implementation-Vendor>Hibernate.org</Implementation-Vendor>
|
||||
<Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
|
||||
<Implementation-Version>${project.version}</Implementation-Version>
|
||||
</manifestEntries>
|
||||
</archive>
|
||||
</configuration>
|
||||
5
target-source.txt
Normal file
5
target-source.txt
Normal file
@ -0,0 +1,5 @@
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
</configuration>
|
||||
<inherited>true</inherited>
|
||||
Loading…
x
Reference in New Issue
Block a user