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
private String buildUrl(String applicationName, IRequestHandler requestHandler) { | |
Args.notNull(applicationName, "applicationName"); | |
Args.notNull(requestHandler, "requestHandler"); | |
RequestCycle requestCycle = getRequestCycle(applicationName); | |
String url = requestCycle.getUrlRenderer().renderFullUrl(Url.parse(requestCycle.urlFor(requestHandler))); | |
if (ThreadContext.getSession() == null) { | |
ThreadContext.detach(); | |
} | |
return url; |
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
package fr.openwide.core.jpa.hibernate.ejb; | |
import java.util.Map; | |
import javax.persistence.EntityManagerFactory; | |
import javax.persistence.spi.PersistenceUnitInfo; | |
import org.hibernate.Interceptor; | |
import org.hibernate.cfg.Configuration; | |
import org.hibernate.jpa.HibernatePersistenceProvider; |
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
diff --git a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java | |
index 8ff72cd..8896aef 100644 | |
--- a/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java | |
+++ b/hibernate-core/src/main/java/org/hibernate/engine/internal/StatefulPersistenceContext.java | |
@@ -644,9 +644,18 @@ | |
"proxy not of type HibernateProxy; it is " + proxyOrig.getClass() | |
); | |
} | |
+ | |
+ HibernateProxy hibernateProxyOrig = (HibernateProxy) proxyOrig ; |
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
public class InterceptorAwareHibernatePersistenceProvider extends HibernatePersistenceProvider { | |
private static final Logger LOGGER = Logger.getLogger(InterceptorAwareHibernatePersistenceProvider.class); | |
@Autowired | |
private Interceptor interceptor; | |
@Override | |
@SuppressWarnings("rawtypes") | |
public EntityManagerFactoryBuilder getEntityManagerFactoryBuilder( |
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
<?xml version="1.0" encoding="UTF-8" ?> | |
<Context> | |
<Loader loaderClass="fr.openwide.tomcat.catalina.loader.WebappOrderedClassLoader" /> | |
</Context> |
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
diff --git a/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java b/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
index 9d5b9b9..dff3c39 100644 | |
--- a/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
+++ b/hibernate-core/src/main/java/org/hibernate/cfg/Ejb3Column.java | |
@@ -269,13 +269,9 @@ public class Ejb3Column { | |
if ( applyNamingStrategy ) { | |
if ( StringHelper.isEmpty( columnName ) ) { | |
if ( propertyName != null ) { | |
- /// HHH-6005 magic | |
- if ( propertyName.contains( ".collection&&element." ) ) { |
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
diff --git a/hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/AttributePath.java b/hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/AttributePath.java | |
index 0005f48..509b22f 100644 | |
--- a/hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/AttributePath.java | |
+++ b/hibernate-core/src/main/java/org/hibernate/boot/model/source/spi/AttributePath.java | |
@@ -16,6 +16,8 @@ | |
public class AttributePath extends AbstractAttributeKey { | |
public static final char DELIMITER = '.'; | |
+ private boolean elementCollection = false; | |
+ |
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
/* | |
* Hibernate OGM, Domain model persistence for NoSQL datastores | |
* | |
* 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.ogm.datastore.mongodb.test.mapping; | |
import static org.hibernate.ogm.datastore.mongodb.utils.MongoDBTestHelper.assertDbObject; |
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
{ | |
"_id": "MultiAddressAccount:login_:gunnar_", | |
"_rev": "4-5f85ed3215c9e039df3c75737f3d01e0", | |
"$type": "entity", | |
"$table": "MultiAddressAccount", | |
"password": "highly secret", | |
"addresses": [ | |
{ | |
"addresses": { | |
"country": "Germany", |
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
diff --git a/core/src/main/java/org/hibernate/ogm/entityentry/impl/OgmEntityEntryState.java b/core/src/main/java/org/hibernate/ogm/entityentry/impl/OgmEntityEntryState.java | |
index 64f8236..47a8944 100644 | |
--- a/core/src/main/java/org/hibernate/ogm/entityentry/impl/OgmEntityEntryState.java | |
+++ b/core/src/main/java/org/hibernate/ogm/entityentry/impl/OgmEntityEntryState.java | |
@@ -29,7 +29,16 @@ | |
private EntityEntryExtraState next; | |
private final TuplePointer tuplePointer = new TuplePointer(); | |
+ | |
+ /** |
OlderNewer