<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" /> <base href="https://hibernate.atlassian.net" />
<title>Message Title</title>
</head>
<body class="jira" style="color: #333; font-family: Arial, sans-serif; font-size: 14px; line-height: 1.429">
<table id="background-table" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<!-- header here -->
<tr>
<td id="header-pattern-container" style="padding: 0px; border-collapse: collapse; padding: 10px 20px">
<table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="header-avatar-image-container" valign="top" style="padding: 0px; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px"> <img id="header-avatar-image" class="image_fix" src="https://secure.gravatar.com/avatar/97ae8a7c74b9e96c7665bfaa5b43f24c?d=mm&s=48" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top" />
</td>
<td id="header-text-container" valign="middle" style="padding: 0px; border-collapse: collapse; vertical-align: middle; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> <a class="user-hover" rel="rhousni" id="email_rhousni" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=rhousni" style="color:#6c797f;; color: #3b73af; text-decoration: none">Réda Housni Alaoui</a> <strong>created</strong> an issue
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="email-content-container" style="padding: 0px; border-collapse: collapse; padding: 0 20px">
<table id="email-content-table" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; border-spacing: 0; border-collapse: separate">
<tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<td class="email-content-rounded-top mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; padding: 0 15px 0 16px; height: 15px; background-color: #fff; border-left: 1px solid #ccc; border-top: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom: 0; border-top-right-radius: 5px; border-top-left-radius: 5px; height: 10px; line-height: 10px; padding: 0 15px 0 16px; mso-line-height-rule: exactly">
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff">
<table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td class="page-title-pattern-first-line " style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://hibernate.atlassian.net/browse/HHH" style="color: #3b73af; text-decoration: none">Hibernate ORM</a> / <a href="https://hibernate.atlassian.net/browse/HHH-9448" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-static-bug-e97415b3-b98e-4c5f-9272-3419f22c6306" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom" /></a> <a href="https://hibernate.atlassian.net/browse/HHH-9448" style="color: #3b73af; text-decoration: none">HHH-9448</a>
</td>
</tr>
<tr>
<td style="vertical-align: top;; padding: 0px; border-collapse: collapse; padding-right: 5px; font-size: 20px; line-height: 30px; mso-line-height-rule: exactly" class="page-title-pattern-header-container"> <span class="page-title-pattern-header" style="font-family: Arial, sans-serif; padding: 0; font-size: 20px; line-height: 30px; mso-text-raise: 2px; mso-line-height-rule: exactly; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-9448" style="color: #3b73af; text-decoration: none">Hibernate do not respect JPA 2.1 specification about EntityGraphs and explicite fetches</a> </span>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand wrapper-special-margin" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff; padding-top: 10px; padding-bottom: 5px">
<table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Issue Type:
</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-bug-e97415b3-b98e-4c5f-9272-3419f22c6306" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom" /> Bug
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Affects Versions:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
4.3.6
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Assignee:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
Unassigned
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Components:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
core
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Created:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top">
18/Oct/2014 06:46 AM
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Priority:
</th>
<td class="has-icon" style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-static-critical-4af69156-92d7-4bba-8fe7-c3247014a04b" height="16" width="16" border="0" align="absmiddle" alt="Critical" style="vertical-align: text-bottom" /> Critical
</td>
</tr>
<tr>
<th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">
Reporter:
</th>
<td style="padding: 0px; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="rhousni" id="email_rhousni" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=rhousni" style="color:#6c797f;; color: #3b73af; text-decoration: none">Réda Housni Alaoui</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand issue-description-container" style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff; padding-top: 5px; padding-bottom: 10px">
<table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px">
<tr>
<td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0px; border-collapse: collapse; padding: 0 0 10px 0">
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">I am using hibernate 4.3.6.</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">When I build a complex query with the criteria API, adding an EntityGraph as query hint has no effect on built query.</p>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">I managed to find where the issue is.<br /> <tt>EntityGraphQueryHint.java</tt></p>
<div class="code panel" style="border-width: 1px;; border: 1px solid #ccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #ccc; -moz-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; margin: 9px 0">
<div class="codeContent panelContent" style="padding: 9px 12px">
<pre class="code-java" style="margin: 10px 0 0 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal">
/*
* Hibernate, Relational Persistence <span class="code-keyword" style="color: #000091">for</span> Idiomatic Java
*
* JBoss, Home of Professional Open Source
* Copyright 2013 Red Hat Inc. and/or its affiliates and other contributors
* as indicated by the @authors tag. All rights reserved.
* See the copyright.txt in the distribution <span class="code-keyword" style="color: #000091">for</span> a
* full listing of individual contributors.
*
* This copyrighted material is made available to anyone wishing to use,
* modify, copy, or redistribute it subject to the terms and conditions
* of the GNU Lesser General Public License, v. 2.1.
* This program is distributed in the hope that it will be useful, but WITHOUT A
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License <span class="code-keyword" style="color: #000091">for</span> more details.
* You should have received a copy of the GNU Lesser General Public License,
* v.2.1 along with <span class="code-keyword" style="color: #000091">this</span> distribution; <span class="code-keyword" style="color: #000091">if</span> not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
<span class="code-keyword" style="color: #000091">package</span> org.hibernate.engine.query.spi;
<span class="code-keyword" style="color: #000091">import</span> java.util.ArrayList;
<span class="code-keyword" style="color: #000091">import</span> java.util.Collections;
<span class="code-keyword" style="color: #000091">import</span> java.util.HashMap;
<span class="code-keyword" style="color: #000091">import</span> java.util.List;
<span class="code-keyword" style="color: #000091">import</span> java.util.Map;
<span class="code-keyword" style="color: #000091">import</span> javax.persistence.AttributeNode;
<span class="code-keyword" style="color: #000091">import</span> javax.persistence.EntityGraph;
<span class="code-keyword" style="color: #000091">import</span> javax.persistence.Subgraph;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.QueryException;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.engine.internal.JoinSequence;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.hql.internal.ast.HqlSqlWalker;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.hql.internal.ast.tree.FromClause;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.hql.internal.ast.tree.FromElement;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.hql.internal.ast.tree.FromElementFactory;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.persister.collection.QueryableCollection;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.sql.JoinType;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.type.CollectionType;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.type.EntityType;
<span class="code-keyword" style="color: #000091">import</span> org.hibernate.type.Type;
/**
* Encapsulates a JPA EntityGraph provided through a JPQL query hint. Converts the fetches into a list of AST
* FromElements. The logic is kept here as much as possible in order to make it easy to remove <span class="code-keyword" style="color: #000091">this</span> in the <span class="code-keyword" style="color: #000091">future</span>,
* once our AST is improved and <span class="code-keyword" style="color: #000091">this</span> <span class="code-quote" style="color: #009100">"hack"</span> is no longer needed.
*
* @author Brett Meyer
*/
<span class="code-keyword" style="color: #000091">public</span> class EntityGraphQueryHint {
        <span class="code-keyword" style="color: #000091">private</span> <span class="code-keyword" style="color: #000091">final</span> EntityGraph<?> originEntityGraph;
        <span class="code-keyword" style="color: #000091">public</span> EntityGraphQueryHint(EntityGraph<?> originEntityGraph) {
                <span class="code-keyword" style="color: #000091">this</span>.originEntityGraph = originEntityGraph;
        }
        <span class="code-keyword" style="color: #000091">public</span> List<FromElement> toFromElements(FromClause fromClause, HqlSqlWalker walker) {
                <span class="code-comment" style="color: #808080">// If a role already has an explicit fetch in the query, skip it in the graph.
</span>                Map<<span class="code-object" style="color: #910091">String</span>, FromElement> explicitFetches = <span class="code-keyword" style="color: #000091">new</span> HashMap<<span class="code-object" style="color: #910091">String</span>, FromElement>();
                <span class="code-keyword" style="color: #000091">for</span> ( <span class="code-object" style="color: #910091">Object</span> o : fromClause.getFromElements() ) {
                        <span class="code-keyword" style="color: #000091">final</span> FromElement fromElement = (FromElement) o;
                        <span class="code-keyword" style="color: #000091">if</span> ( fromElement.getRole() != <span class="code-keyword" style="color: #000091">null</span> ) {
                                explicitFetches.put( fromElement.getRole(), fromElement );
                        }
                }
                <span class="code-keyword" style="color: #000091">return</span> getFromElements(
                                fromClause.getLevel() == FromClause.ROOT_LEVEL ? originEntityGraph.getAttributeNodes():
                                        Collections.emptyList(),
                                fromClause.getFromElement(),
                                fromClause,
                                walker,
                                explicitFetches
                );
        }
        <span class="code-keyword" style="color: #000091">private</span> List<FromElement> getFromElements(
                        List attributeNodes,
                        FromElement origin,
                        FromClause fromClause,
                        HqlSqlWalker walker,
                        Map<<span class="code-object" style="color: #910091">String</span>, FromElement> explicitFetches) {
                <span class="code-keyword" style="color: #000091">final</span> List<FromElement> fromElements = <span class="code-keyword" style="color: #000091">new</span> ArrayList<FromElement>();
                <span class="code-keyword" style="color: #000091">for</span> ( <span class="code-object" style="color: #910091">Object</span> obj : attributeNodes ) {
                        <span class="code-keyword" style="color: #000091">final</span> AttributeNode<?> attributeNode = (AttributeNode<?>) obj;
                        <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> attributeName = attributeNode.getAttributeName();
                        <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> className = origin.getClassName();
                        <span class="code-comment" style="color: #808080">// TODO: This is ignored by collection types and probably wrong <span class="code-keyword" style="color: #000091; color: #808080">for</span> entity types. Presumably it screws
</span>                        <span class="code-comment" style="color: #808080">// with inheritance.
</span>                        <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> role = className + <span class="code-quote" style="color: #009100">"."</span> + attributeName;
                        <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> classAlias = origin.getClassAlias();
                        <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> originTableAlias = origin.getTableAlias();
                        <span class="code-keyword" style="color: #000091">final</span> Type propertyType = origin.getPropertyType( attributeName, attributeName );
                        <span class="code-keyword" style="color: #000091">try</span> {
                                FromElement fromElement = <span class="code-keyword" style="color: #000091">null</span>;
                                <span class="code-keyword" style="color: #000091">if</span> ( !explicitFetches.containsKey( role ) ) {
                                        <span class="code-keyword" style="color: #000091">if</span> ( propertyType.isEntityType() ) {
                                                <span class="code-keyword" style="color: #000091">final</span> EntityType entityType = (EntityType) propertyType;
                                                <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span>[] columns = origin.toColumns( originTableAlias, attributeName, <span class="code-keyword" style="color: #000091">false</span> );
                                                <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span> tableAlias = walker.getAliasGenerator().createName(
                                                                entityType.getAssociatedEntityName()
                                                );
                                                <span class="code-keyword" style="color: #000091">final</span> FromElementFactory fromElementFactory = <span class="code-keyword" style="color: #000091">new</span> FromElementFactory(
                                                                fromClause, origin,
                                                                attributeName, classAlias, columns, <span class="code-keyword" style="color: #000091">false</span>
                                                );
                                                <span class="code-keyword" style="color: #000091">final</span> JoinSequence joinSequence = walker.getSessionFactoryHelper().createJoinSequence(
                                                                <span class="code-keyword" style="color: #000091">false</span>, entityType, tableAlias, JoinType.LEFT_OUTER_JOIN, columns
                                                );
                                                fromElement = fromElementFactory.createEntityJoin(
                                                                entityType.getAssociatedEntityName(),
                                                                tableAlias,
                                                                joinSequence,
                                                                <span class="code-keyword" style="color: #000091">true</span>,
                                                                walker.isInFrom(),
                                                                entityType,
                                                                role,
                                                                <span class="code-keyword" style="color: #000091">null</span>
                                                );
                                        }
                                        <span class="code-keyword" style="color: #000091">else</span> <span class="code-keyword" style="color: #000091">if</span> ( propertyType.isCollectionType() ) {
                                                CollectionType collectionType = (CollectionType) propertyType;
                                                <span class="code-keyword" style="color: #000091">final</span> <span class="code-object" style="color: #910091">String</span>[] columns = origin.toColumns( originTableAlias, attributeName, <span class="code-keyword" style="color: #000091">false</span> );
                                                <span class="code-keyword" style="color: #000091">final</span> FromElementFactory fromElementFactory = <span class="code-keyword" style="color: #000091">new</span> FromElementFactory(
                                                                fromClause, origin,
                                                                attributeName, classAlias, columns, <span class="code-keyword" style="color: #000091">false</span>
                                                );
                                                <span class="code-keyword" style="color: #000091">final</span> QueryableCollection queryableCollection = walker.getSessionFactoryHelper()
                                                                .requireQueryableCollection( collectionType.getRole() );
                                                fromElement = fromElementFactory.createCollection(
                                                                queryableCollection, collectionType.getRole(), JoinType.LEFT_OUTER_JOIN, <span class="code-keyword" style="color: #000091">true</span>, <span class="code-keyword" style="color: #000091">false</span>
                                                );
                                        }
                                }
                                <span class="code-keyword" style="color: #000091">if</span> ( fromElement != <span class="code-keyword" style="color: #000091">null</span> ) {
                                        fromElements.add( fromElement );
                                        <span class="code-comment" style="color: #808080">// recurse into subgraphs
</span>                                        <span class="code-keyword" style="color: #000091">for</span> ( Subgraph<?> subgraph : attributeNode.getSubgraphs().values() ) {
                                                fromElements.addAll(
                                                                getFromElements(
                                                                                subgraph.getAttributeNodes(), fromElement,
                                                                                fromClause, walker, explicitFetches
                                                                )
                                                );
                                        }
                                }
                        }
                        <span class="code-keyword" style="color: #000091">catch</span> (Exception e) {
                                <span class="code-keyword" style="color: #000091">throw</span> <span class="code-keyword" style="color: #000091">new</span> QueryException( <span class="code-quote" style="color: #009100">"Could not apply the EntityGraph to the Query!"</span>, e );
                        }
                }
                <span class="code-keyword" style="color: #000091">return</span> fromElements;
        }
}
</pre>
</div>
</div>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">At line 101 we can see that entitygraph is ignored on attributes that have been explicitly fetched.</p>
<div class="code panel" style="border-width: 1px;; border: 1px solid #ccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #ccc; -moz-border-radius: 3px 3px 3px 3px; border-radius: 3px 3px 3px 3px; margin: 9px 0">
<div class="codeContent panelContent" style="padding: 9px 12px">
<pre class="code-java" style="margin: 10px 0 0 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal">
FromElement fromElement = <span class="code-keyword" style="color: #000091">null</span>;
        <span class="code-keyword" style="color: #000091">if</span> ( !explicitFetches.containsKey( role ) ) {
                <span class="code-keyword" style="color: #000091">if</span> ( propertyType.isEntityType() ) {
</pre>
</div>
</div>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">This is contrary to the JPA 2.1 specification.<br /> In part 3.7.4 about <tt>EntityGraphs in find operations</tt> there is the following statement:</p>
<blockquote style="margin: 10px 0 0 0; border-left: 1px solid #ccc; color: #707070; margin-left: 19px; padding: 10px 20px">
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">An entity graph can be used with the find method or as a query hint to override or augment FetchType semantics.</p>
</blockquote>
<blockquote style="margin: 10px 0 0 0; border-left: 1px solid #ccc; color: #707070; margin-left: 19px; padding: 10px 20px">
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">The persistence provider is permitted to fetch additional entity state beyond that specified by a fetch graph or load graph. It is required, however, that the persistence provider fetch all state specified by the fetch or load graph</p>
</blockquote>
<p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0 0">Regards.</p>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="email-content-main mobile-expand " style="padding: 0px; border-collapse: collapse; border-left: 1px solid #ccc; border-right: 1px solid #ccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #fff">
<table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px">
<tr>
<td id="actions-pattern-container" valign="middle" style="padding: 0px; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0">
<table align="left" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td class="actions-pattern-action-icon-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0px; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-9448#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none"> <img class="actions-pattern-action-icon-image" src="cid:jira-generated-image-static-comment-icon-680da0a4-e6c9-4f8e-848f-88c1343294ed" alt="Add Comment" title="Add Comment" height="16" width="16" border="0" style="vertical-align: middle" /> </a>
</td>
<td class="actions-pattern-action-text-container" style="padding: 0px; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 4px; padding-left: 5px"> <a href="https://hibernate.atlassian.net/browse/HHH-9448#add-comment" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<!-- there needs to be content in the cell for it to render in some clients -->
<tr>
<td class="email-content-rounded-bottom mobile-expand" style="padding: 0px; border-collapse: collapse; color: #fff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #fff; border-top: 0; border-left: 1px solid #ccc; border-bottom: 1px solid #ccc; border-right: 1px solid #ccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly">
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td id="footer-pattern" style="padding: 0px; border-collapse: collapse; padding: 12px 20px">
<table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0px; border-collapse: collapse; color: #999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px">
This message was sent by Atlassian JIRA <span id="footer-build-information">(v6.4-OD-07-004#64005-<span title="29a0beaca7c693975974e1d5d9f869ecb60599fc" data-commit-id="29a0beaca7c693975974e1d5d9f869ecb60599fc}">sha1:29a0bea</span>)</span>
</td>
<td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0px; border-collapse: collapse; padding-left: 20px; vertical-align: top">
<table style="border-collapse: collapse; mso-table-lspace: 0pt; mso-table-rspace: 0pt">
<tr>
<td id="footer-pattern-logo-desktop-padding" style="padding: 0px; border-collapse: collapse; padding-top: 3px"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-b8445a77-f463-464d-87c0-c3605d20e3ac" alt="Atlassian logo" title="Atlassian logo" width="169" height="36" class="image_fix" />
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>