<!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: #333333; 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: 0; mso-table-rspace: 0; background-color: #f5f5f5; border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0" bgcolor="#f5f5f5"> 
            <!-- header here --> 
            <tbody>
                <tr> 
                    <td id="header-pattern-container" style="padding: 0; border-collapse: collapse; padding: 10px 20px"> 
                        <table id="header-pattern" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="header-avatar-image-container" valign="top" style="padding: 0; border-collapse: collapse; vertical-align: top; width: 32px; padding-right: 8px" width="32"> <img id="header-avatar-image" class="image_fix" src="https://avatar-cdn.atlassian.com/ec5c1e0d4b187411bb37b88003072ade?s=48&amp;d=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2Fec5c1e0d4b187411bb37b88003072ade%3Fd%3Dmm%26s%3D48%26noRedirect%3Dtrue" height="32" width="32" border="0" style="border-radius: 3px; vertical-align: top"> </td> 
                                    <td id="header-text-container" valign="middle" style="padding: 0; 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="antonio.benvenuto" id="email_antonio.benvenuto" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=antonio.benvenuto" style="color:#6c797f;; color: #3b73af; text-decoration: none">Antonio</a> <strong>created</strong> an issue </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="email-content-container" style="padding: 0; 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: 0; mso-table-rspace: 0; border-spacing: 0; border-collapse: separate"> 
                            <tbody>
                                <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: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 15px; background-color: #ffffff; border-left: 1px solid #cccccc; border-top: 1px solid #cccccc; border-right: 1px solid #cccccc; 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" height="10" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> 
                                        <table class="page-title-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td class="page-title-pattern-first-line " style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; padding-top: 10px"> <a href="https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none">Hibernate ORM</a> / <a href="https://hibernate.atlassian.net/browse/HHH-13203?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-cedcba77-0afb-49c2-bb39-6f977489d67c" height="16" width="16" border="0" align="absmiddle" alt="Bug" style="vertical-align: text-bottom"></a> <a href="https://hibernate.atlassian.net/browse/HHH-13203?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none">HHH-13203</a> </td> 
                                                </tr> 
                                                <tr> 
                                                    <td style="vertical-align: top;; padding: 0; 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-13203?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none">Fetchs used into criteria query seems to be ignored when bytecode enhancement is enabled</a> </span> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand  wrapper-special-margin" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 10px; padding-bottom: 5px" bgcolor="#ffffff"> 
                                        <table class="keyvalue-table" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <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: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <img src="cid:jira-generated-image-avatar-cedcba77-0afb-49c2-bb39-6f977489d67c" 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: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 5.3.7 </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: 0; 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">Attachments:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> jpa-performance-test.rar, test_db.sql </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: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> bytecode-enhancement, hibernate-core, hibernate-enhance-maven-plugin </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: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> 14/Jan/2019 14:49 PM </td> 
                                                </tr> 
                                                <tr> 
                                                    <th style="color: #707070; font: normal 14px/20px Arial, sans-serif; text-align: left; vertical-align: top; padding: 2px 0">Environment:</th> 
                                                    <td style="padding: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> Spring Boot 2.1.0.RELEASE with Spring Data JPA <br> MySql Community Server 8.0 </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: 0; 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-major-7d276917-b598-494e-9de5-273884ce0cd2" height="16" width="16" border="0" align="absmiddle" alt="Major" style="vertical-align: text-bottom"> Major </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: 0; border-collapse: collapse; font: normal 14px/20px Arial, sans-serif; padding: 2px 0 2px 5px; vertical-align: top"> <a class="user-hover" rel="antonio.benvenuto" id="email_antonio.benvenuto" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?name=antonio.benvenuto" style="color:#6c797f;; color: #3b73af; text-decoration: none">Antonio</a> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand  issue-description-container" style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff; padding-top: 5px; padding-bottom: 10px" bgcolor="#ffffff"> 
                                        <table class="text-paragraph-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 2px"> 
                                            <tbody>
                                                <tr> 
                                                    <td class="text-paragraph-pattern-container mobile-resize-text " style="padding: 0; border-collapse: collapse; padding: 0 0 10px"> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0; margin-top: 0">I have an Entity A which contains a @OneToOne relation to the Entity B and Entity C. Entity B and Entity C have, in turn, a @OneToOne relation to Entity B1 and Entity C1:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0"> A</p> 
                                                        <div class="table-wrap"> 
                                                            <table class="confluenceTable" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; border-collapse: collapse; margin: 5px 0 5px 2px; width: auto">
                                                                <tbody> 
                                                                    <tr> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td class="confluenceTd" style="padding: 0; border-collapse: collapse; border: 1px solid #cccccc; padding: 3px 4px; font: normal 14px/20px Arial, sans-serif">--B @OneToOne</td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td class="confluenceTd" style="padding: 0; border-collapse: collapse; border: 1px solid #cccccc; padding: 3px 4px; font: normal 14px/20px Arial, sans-serif">--B1 @OneToOne</td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td class="confluenceTd" style="padding: 0; border-collapse: collapse; border: 1px solid #cccccc; padding: 3px 4px; font: normal 14px/20px Arial, sans-serif">--C</td> 
                                                                    </tr> 
                                                                    <tr> 
                                                                    </tr> 
                                                                    <tr> 
                                                                        <td class="confluenceTd" style="padding: 0; border-collapse: collapse; border: 1px solid #cccccc; padding: 3px 4px; font: normal 14px/20px Arial, sans-serif">--C1 @OneToOne</td> 
                                                                    </tr> 
                                                                </tbody>
                                                            </table> 
                                                        </div> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">I need to select all data of Entity A with some fields of Entity B and Entity C. Fields of Entity B1 and C1 have to be ignored.</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">// The 'A' Entity (that I want to load with criteria)<br> @Entity<br> @Table(name = "users", schema = "test_db") <br> public class UserEntity</p> { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @Column(name = "USER_ID") private Integer userId; @Column(name = "NAME") private String name; @Column(name = "SURNAME") private String surname; @Column(name = "EMAIL") private String email; // The B Entity Relation (wished) @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "BADGE_ID") private BadgeEntity badge; // The C Entity Relation (wished) @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ADDRESS_ID") private AddressEntity address; // Getters and Setters } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">// The B Entity (relation that I eventually want to load fetching LEFT on father) <br> @Entity<br> @Table(name = "badges", schema = "test_db")<br> public class BadgeEntity</p> { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @Column(name = "BADGE_ID", nullable = false) private Integer badgeId; @Column(name = "CODE", nullable = false, length = 10) private String code; @Column(name = "DESCRIPTION", nullable = false, length = 255) private String description; // The B1 Entity Relation (not wished) @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "BADGE_TYPE_ID") private BadgeTypeEntity badgeType; // Getters and Setters } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">// The C Entity (relation that I eventually want to load fetching LEFT on father) <br> @Entity<br> @Table(name = "addresses", schema = "test_db")<br> public class AddressEntity</p> { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @Column(name = "ADDRESS_ID") private Integer addressId; @Column(name = "DESCRIPTION") private String description; @Column(name = "CITY") private String city; @Column(name = "STATE") private String state; // The C1 Entity Relation (not wished) @OneToOne(fetch = FetchType.LAZY) @JoinColumn(name = "ADDRESS_TYPE_ID") private AddressTypeEntity addressType; // Getters and Setters } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">// The B1 Entity (relation that I don't want to load) <br> @Entity<br> @Table(name = "badge_types", schema = "test_db")<br> public class BadgeTypeEntity</p> { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @Column(name = "BADGE_TYPE_ID") private Integer badgeTypeId; @Column(name = "CODE") private String code; // Getters and Setters } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">// The C1 Entity (relation that I don't want to load) <br> @Entity<br> @Table(name = "address_types", schema = "test_db")<br> public class AddressTypeEntity </p> { @Id @GeneratedValue(strategy= GenerationType.IDENTITY) @Column(name = "ADDRESS_TYPE_ID") private Integer addressTypeId; @Column(name = "CODE") private String code; // Getters and Setters } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0"> </p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">/**<br> *</p> 
                                                        <ul> 
                                                            <li>Load all UserEntities executing only single query,</li> 
                                                            <li>fetching RIGHT on BadgeEntity and AddressEntity (@OneToOne relations),</li> 
                                                            <li>avoiding load of nested BadgeTypeEntity and AddressTypeEntity<br> *<br> **/<br> @Override<br> public List&lt;UserEntity&gt; getUserByFilter() { CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery&lt;UserEntity&gt; cq = cb.createQuery(UserEntity.class); Root&lt;UserEntity&gt; user = cq.from(UserEntity.class); // Fetch User --&gt; Address (wished relation, without nested @OneToOne relations) Fetch&lt;UserEntity, AddressEntity&gt; addressFetch = user.fetch(UserEntity_.address, JoinType.LEFT); // Fetch User --&gt; Badge (wished relation, without nested @OneToOne relations) Fetch&lt;UserEntity, BadgeEntity&gt; badgeFetch = user.fetch(UserEntity_.badge, JoinType.LEFT); List&lt;Predicate&gt; predicates = new ArrayList&lt;Predicate&gt;(); cq.where(cb.and(predicates.toArray(new Predicate[predicates.size()]))).distinct(true); TypedQuery&lt;UserEntity&gt; query = em.createQuery(cq); List&lt;UserEntity&gt; result = query.getResultList(); return result; }</li> 
                                                        </ul> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">@Test<br> @Transactional<br> public void getUserByFilter_Test()<br> {<br> try</p> { UserEntity eUser = userCustomRepository.getUserByFilter().get(0); // At this point, one single query is executed System.out.println("\n********************************"); System.out.println("Name : " + eUser.getName()); System.out.println("Surname : " + eUser.getSurname()); System.out.println("Email : " + eUser.getEmail()); System.out.println("********************************\n"); // Calling get on alrready fetched relation, cause execution of an extra query! BadgeEntity eBadge = eUser.getBadge(); System.out.println("Badge Code : " + eBadge.getCode()); Assert.assertNotNull(eUser); } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0"> catch (Exception ex)</p> { ex.printStackTrace(); Assert.fail(ex.getMessage()); } <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">} </p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">I configured bytecode enhancement via maven plugin:<br> &lt;build&gt;<br> &lt;plugins&gt;<br> &lt;plugin&gt;<br> &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;<br> &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;<br> &lt;version&gt;3.7.0&lt;/version&gt;<br> &lt;configuration&gt;<br> &lt;compilerArguments&gt;<br> &lt;processor&gt;org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor&lt;/processor&gt;<br> &lt;/compilerArguments&gt;<br> &lt;/configuration&gt;<br> &lt;/plugin&gt;<br> &lt;plugin&gt;<br> &lt;groupId&gt;org.hibernate.orm.tooling&lt;/groupId&gt;<br> &lt;artifactId&gt;hibernate-enhance-maven-plugin&lt;/artifactId&gt;<br> &lt;version&gt;$</p> {hibernate.version} <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">&lt;/version&gt;<br> &lt;executions&gt;<br> &lt;execution&gt;<br> &lt;configuration&gt;<br> &lt;failOnError&gt;true&lt;/failOnError&gt;<br> &lt;enableLazyInitialization&gt;true&lt;/enableLazyInitialization&gt;<br> &lt;/configuration&gt;<br> &lt;phase&gt;<br> compile<br> &lt;/phase&gt;<br> &lt;goals&gt;<br> &lt;goal&gt;enhance&lt;/goal&gt;<br> &lt;/goals&gt;<br> &lt;/execution&gt;<br> &lt;/executions&gt;<br> &lt;/plugin&gt;<br> &lt;/plugins&gt;<br> &lt;/build&gt;</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Executing the query method, I’m expecting the execution of a single query,on User table, fetching right on Badge and Address tables.<br> With Bytecode Enhancement enabled, three different query are executed.<br> It seems that with enhancement enable, hibernate ignore fetches configured into criteria query</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Hibernate: <br> select<br> distinct userentity0_.user_id as user_id1_6_0_,<br> addressent1_.address_id as address_1_1_1_,<br> badgeentit2_.badge_id as badge_id1_3_2_,<br> userentity0_.address_id as address_5_6_0_,<br> userentity0_.badge_id as badge_id6_6_0_,<br> userentity0_.email as email2_6_0_,<br> userentity0_.name as name3_6_0_,<br> userentity0_.surname as surname4_6_0_,<br> addressent1_.address_type_id as address_5_1_1_,<br> addressent1_.city as city2_1_1_,<br> addressent1_.description as descript3_1_1_,<br> addressent1_.state as state4_1_1_,<br> badgeentit2_.badge_type_id as badge_ty4_3_2_,<br> badgeentit2_.code as code2_3_2_,<br> badgeentit2_.description as descript3_3_2_ <br> from<br> users userentity0_ <br> left outer join<br> addresses addressent1_ <br> on userentity0_.address_id=addressent1_.address_id <br> left outer join<br> badges badgeentit2_ <br> on userentity0_.badge_id=badgeentit2_.badge_id <br> where<br> 1=1<br> Hibernate: <br> select<br> addresstyp0_.address_type_id as address_1_0_0_,<br> addresstyp0_.code as code2_0_0_ <br> from<br> address_types addresstyp0_ <br> where<br> addresstyp0_.address_type_id=?<br> Hibernate: <br> select<br> badgetypee0_.badge_type_id as badge_ty1_2_0_,<br> badgetypee0_.code as code2_2_0_ <br> from<br> badge_types badgetypee0_ <br> where<br> badgetypee0_.badge_type_id=?</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">********************************<br> Name : Jhon<br> Surname : Doe<br> Email : jhon.doe@gmail.com<br> ********************************</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Badge Code : AA11223344</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Instead, without bytecode enhancement, a single query is righty executed:</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Hibernate: <br> select<br> distinct userentity0_.user_id as user_id1_6_0_,<br> addressent1_.address_id as address_1_1_1_,<br> badgeentit2_.badge_id as badge_id1_3_2_,<br> userentity0_.address_id as address_5_6_0_,<br> userentity0_.badge_id as badge_id6_6_0_,<br> userentity0_.email as email2_6_0_,<br> userentity0_.name as name3_6_0_,<br> userentity0_.surname as surname4_6_0_,<br> addressent1_.address_type_id as address_5_1_1_,<br> addressent1_.city as city2_1_1_,<br> addressent1_.description as descript3_1_1_,<br> addressent1_.state as state4_1_1_,<br> badgeentit2_.badge_type_id as badge_ty4_3_2_,<br> badgeentit2_.code as code2_3_2_,<br> badgeentit2_.description as descript3_3_2_ <br> from<br> users userentity0_ <br> left outer join<br> addresses addressent1_ <br> on userentity0_.address_id=addressent1_.address_id <br> left outer join<br> badges badgeentit2_ <br> on userentity0_.badge_id=badgeentit2_.badge_id <br> where<br> 1=1</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">********************************<br> Name : Jhon<br> Surname : Doe<br> Email : jhon.doe@gmail.com<br> ********************************</p> <p style="margin-top:0;margin-bottom:10px;; margin: 10px 0 0">Badge Code : AA11223344</p> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td class="email-content-main mobile-expand " style="padding: 0; border-collapse: collapse; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; border-top: 0; border-bottom: 0; padding: 0 15px 0 16px; background-color: #ffffff" bgcolor="#ffffff"> <script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "EmailMessage",
  "description": "View Issue",
  "potentialAction": {
    "@type": "ViewAction",
        "target": "https://hibernate.atlassian.net/browse/HHH-13203?inbox=true&",
    "name": "View Issue"
      },
  "publisher": {
    "@type": "Organization",
    "name": "Atlassian",
    "url": "https://www.atlassian.com"
  }
}
</script> 
                                        <table id="actions-pattern" cellspacing="0" cellpadding="0" border="0" width="100%" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 1px"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="actions-pattern-container" valign="middle" style="padding: 0; border-collapse: collapse; padding: 10px 0 10px 24px; vertical-align: middle; padding-left: 0"> 
                                                        <table align="left" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                                            <tbody>
                                                                <tr> 
                                                                    <td class="actions-pattern-action-icon-container" style="padding: 0; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 14px; line-height: 20px; mso-line-height-rule: exactly; mso-text-raise: 0; vertical-align: middle"> <a href="https://hibernate.atlassian.net/browse/HHH-13203#add-comment?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" 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-1df9f3d5-50ed-4961-88d6-cb1131bd8faa" 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: 0; 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-13203#add-comment?atlOrigin=eyJpIjoiNDE0ZjVmNTY0YzY1NDljYzg5OTIxZTcwZWI4NWFlMTkiLCJwIjoiaiJ9" target="_blank" title="Add Comment" style="color: #3b73af; text-decoration: none">Add Comment</a> </td> 
                                                                </tr> 
                                                            </tbody>
                                                        </table> </td> 
                                                </tr> 
                                            </tbody>
                                        </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: 0; border-collapse: collapse; color: #ffffff; padding: 0 15px 0 16px; height: 5px; line-height: 5px; background-color: #ffffff; border-top: 0; border-left: 1px solid #cccccc; border-bottom: 1px solid #cccccc; border-right: 1px solid #cccccc; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; mso-line-height-rule: exactly" height="5" bgcolor="#ffffff">&nbsp;</td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
                <tr> 
                    <td id="footer-pattern" style="padding: 0; border-collapse: collapse; padding: 12px 20px"> 
                        <table id="footer-pattern-container" cellspacing="0" cellpadding="0" border="0" style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                            <tbody>
                                <tr> 
                                    <td id="footer-pattern-mobile-separated-links" class="mobile-resize-text" width="100%" colspan="2" style="padding: 0; border-collapse: collapse; color: #999999; font-size: 12px; line-height: 18px; font-family: Arial, sans-serif; mso-line-height-rule: exactly; mso-text-raise: 2px"> Get Jira notifications on your phone! Download the Jira Cloud app for <a href="https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail" style="color: #3b73af; text-decoration: none">Android</a> or <a href="https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8" style="color: #3b73af; text-decoration: none">iOS</a> 
                                        <hr> </td> 
                                </tr> 
                                <tr> 
                                    <td id="footer-pattern-text" class="mobile-resize-text" width="100%" style="padding: 0; border-collapse: collapse; color: #999999; 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">(v1001.0.0-SNAPSHOT#100097-<span title="20c71fe7db11a5db729e4de6634af659d1661338" data-commit-id="20c71fe7db11a5db729e4de6634af659d1661338}">sha1:20c71fe</span>)</span> </td> 
                                    <td id="footer-pattern-logo-desktop-container" valign="top" style="padding: 0; border-collapse: collapse; padding-left: 20px; vertical-align: top"> 
                                        <table style="border-collapse: collapse; mso-table-lspace: 0; mso-table-rspace: 0"> 
                                            <tbody>
                                                <tr> 
                                                    <td id="footer-pattern-logo-desktop-padding" style="padding: 0; border-collapse: collapse; padding-top: 3px; opacity: 0.150"> <img id="footer-pattern-logo-desktop" src="cid:jira-generated-image-static-footer-desktop-logo-b54d3e8e-ec1a-4b96-a895-582d7384b640" alt="Atlassian logo" title="Atlassian logo" width="192" height="24" class="image_fix"> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                            </tbody>
                        </table> </td> 
                </tr> 
            </tbody>
        </table>   
    
<img border="0" width="1" height="1" alt="" src="http://atlassian.et.e.sparkpost.com/q/OFo3GGlNqfM9SU80spYVaQ~~/AAAAAQA~/RgReHkV6PlcLYXRsYXNzaWFudXNCCgAA-hE9XGFWXahSIGhpYmVybmF0ZS1pc3N1ZXNAbGlzdHMuamJvc3Mub3JnWAQAAAAE">
</body>
</html>