<!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://secure.gravatar.com/avatar/1cd2025cca6a5a953a0ed8a1275cf96e?d=https%3A%2F%2Favatar-management--avatars.us-west-2.prod.public.atl-paas.net%2Finitials%2FIS-3.png&amp;size=48&amp;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: 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="support" style="color:#6c797f;; color: #3b73af; text-decoration: none" id="email_support" href="https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7c7fc415-3805-43c8-9dfa-7cbe1117db94"> IT Support </a> <strong>commented</strong> on <a href="https://hibernate.atlassian.net/browse/HHH-13959?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none"><img src="cid:jira-generated-image-avatar-a118c854-fd34-4951-9656-4b333c119b70" height="16" width="16" border="0" align="absmiddle" alt="Bug"> HHH-13959</a> </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 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-13959?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9" style="color: #3b73af; text-decoration: none">Re: Additional regressions not captured in HHH-9798 (e.g. nullability and uniqueness) for @OneToOne with @JoinTable </a> </span> </td> 
                                                </tr> 
                                            </tbody>
                                        </table> </td> 
                                </tr> 
                                <tr> 
                                    <td id="text-paragraph-pattern-top" class="email-content-main mobile-expand  comment-top-pattern" 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; border-bottom: none; padding-bottom: 0" 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"> 
                                                        <div class="preformatted panel" style="border-width: 1px;; border: 1px solid #cccccc; background: #f5f5f5; font-size: 12px; line-height: 1.333; font-family: monospace; border: 1px solid #cccccc; -moz-border-radius: 3px; border-radius: 3px; margin: 9px 0">
                                                            <div class="preformattedContent panelContent" style="padding: 9px 12px"> 
                                                                <pre style="margin: 10px 0 0; margin-top: 0; max-height: 30em; overflow: auto; white-space: pre-wrap; word-wrap: normal; white-space: pre; word-break: normal; word-wrap: break-word; word-break: break-all; white-space: pre-wrap">Running org.hibernate.bugs.JPAUnitTestCase
2020-04-19 23:05:46 INFO  LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [name: templatePU]
2020-04-19 23:05:47 INFO  Version:44 - HHH000412: Hibernate ORM core version 5.4.14.Final
2020-04-19 23:05:47 INFO  Environment:184 - HHH000205: Loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=org.h2.Driver, javax.persistence.validation
.mode=NONE, hibernate.service.allow_crawling=false, hibernate.max_fetch_depth=5, hibernate.dialect=org.hibernate.dialect.H2Dialect, hibernate.format_sql=true, hibernate.cache.region.facto
ry_class=org.hibernate.testing.cache.CachingRegionFactory, hibernate.connection.username=sa, hibernate.cache.region_prefix=hibernate.test, hibernate.connection.url=jdbc:h2:mem:db1;DB_CLOS
E_DELAY=-1, hibernate.bytecode.use_reflection_optimizer=false, hibernate.show_sql=false, hibernate.session.events.log=true, hibernate.jdbc.batch_versioned_data=true, hibernate.connection.
pool_size=5}
2020-04-19 23:05:47 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2020-04-19 23:05:47 INFO  Version:49 - HCANN000001: Hibernate Commons Annotations {5.1.0.Final}
2020-04-19 23:05:48 WARN  pooling:72 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2020-04-19 23:05:48 INFO  pooling:115 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:48 INFO  pooling:124 - HHH10001001: Connection properties: {user=sa}
2020-04-19 23:05:48 INFO  pooling:129 - HHH10001003: Autocommit mode: false
2020-04-19 23:05:48 INFO  DriverManagerConnectionProviderImpl:249 - HHH000115: Hibernate connection pool size: 5 (min=1)
2020-04-19 23:05:48 INFO  Dialect:172 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:49 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@bd2f5a9] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
Hibernate:

    create table person_role (
       roleid bigint generated by default as identity,
        email1 varchar(255),
        primary key (roleid)
    )
2020-04-19 23:05:49 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@6f8f8a80] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    create table profile (
       id bigint generated by default as identity,
        email varchar(255),
        name varchar(255),
        primary key (id)
    )
Hibernate:

    create table profile_int1_map (
       cmisPersonRole_roleid bigint not null,
        id bigint not null,
        primary key (id)
    )
Hibernate:

    alter table profile_int1_map
       add constraint UK_2gwt5k7d8esq4ogpd3ldid633 unique (cmisPersonRole_roleid)
Hibernate:

    alter table profile_int1_map
       add constraint FKs8xhl15aywon4bpcwkexm18cj
       foreign key (cmisPersonRole_roleid)
       references person_role
Hibernate:

    alter table profile_int1_map
       add constraint FKs7yuk6miknatncgyjmufep2x0
       foreign key (id)
       references profile
2020-04-19 23:05:49 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
Hibernate:
    insert
    into
        person_role
        (roleid, email1)
    values
        (null, ?)
us.pdinc.products.cresaptown.ds.beans.db.int1.PersonRole@3c
1
2020-04-19 23:05:49 INFO  StatisticalLoggingSessionEventListener:258 - Session Metrics {
    42600 nanoseconds spent acquiring 1 JDBC connections;
    149400 nanoseconds spent releasing 1 JDBC connections;
    968500 nanoseconds spent preparing 1 JDBC statements;
    2586500 nanoseconds spent executing 1 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    30201000 nanoseconds spent executing 2 flushes (flushing a total of 2 entities and 0 collections);
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
2020-04-19 23:05:49 INFO  SchemaDropperImpl$DelayedDropActionImpl:524 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:49 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@9d200de] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
2020-04-19 23:05:49 INFO  pooling:418 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:49 INFO  LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [name: templatePU]
2020-04-19 23:05:49 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2020-04-19 23:05:49 WARN  pooling:72 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2020-04-19 23:05:49 INFO  pooling:115 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:49 INFO  pooling:124 - HHH10001001: Connection properties: {user=sa}
2020-04-19 23:05:49 INFO  pooling:129 - HHH10001003: Autocommit mode: false
2020-04-19 23:05:49 INFO  DriverManagerConnectionProviderImpl:249 - HHH000115: Hibernate connection pool size: 5 (min=1)
2020-04-19 23:05:49 INFO  Dialect:172 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@6f3f0fae] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
Hibernate:

    create table person_role (
       roleid bigint generated by default as identity,
        email1 varchar(255),
        primary key (roleid)
    )
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@21a66d45] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    create table profile (
       id bigint generated by default as identity,
        email varchar(255),
        name varchar(255),
        primary key (id)
    )
Hibernate:

    create table profile_int1_map (
       cmisPersonRole_roleid bigint not null,
        id bigint not null,
        primary key (id)
    )
Hibernate:

    alter table profile_int1_map
       add constraint UK_2gwt5k7d8esq4ogpd3ldid633 unique (cmisPersonRole_roleid)
Hibernate:

    alter table profile_int1_map
       add constraint FKs8xhl15aywon4bpcwkexm18cj
       foreign key (cmisPersonRole_roleid)
       references person_role
Hibernate:

    alter table profile_int1_map
       add constraint FKs7yuk6miknatncgyjmufep2x0
       foreign key (id)
       references profile
2020-04-19 23:05:50 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2020-04-19 23:05:50 INFO  SchemaDropperImpl$DelayedDropActionImpl:524 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@e04ccf8] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
2020-04-19 23:05:50 INFO  pooling:418 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:50 INFO  LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [name: templatePU]
2020-04-19 23:05:50 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2020-04-19 23:05:50 WARN  pooling:72 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2020-04-19 23:05:50 INFO  pooling:115 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:50 INFO  pooling:124 - HHH10001001: Connection properties: {user=sa}
2020-04-19 23:05:50 INFO  pooling:129 - HHH10001003: Autocommit mode: false
2020-04-19 23:05:50 INFO  DriverManagerConnectionProviderImpl:249 - HHH000115: Hibernate connection pool size: 5 (min=1)
2020-04-19 23:05:50 INFO  Dialect:172 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@680d4a6a] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
Hibernate:

    create table person_role (
       roleid bigint generated by default as identity,
        email1 varchar(255),
        primary key (roleid)
    )
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@2f04105] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:

    create table profile (
       id bigint generated by default as identity,
        email varchar(255),
        name varchar(255),
        primary key (id)
    )
Hibernate:

    create table profile_int1_map (
       cmisPersonRole_roleid bigint not null,
        id bigint not null,
        primary key (id)
    )
Hibernate:

    alter table profile_int1_map
       add constraint UK_2gwt5k7d8esq4ogpd3ldid633 unique (cmisPersonRole_roleid)
Hibernate:

    alter table profile_int1_map
       add constraint FKs8xhl15aywon4bpcwkexm18cj
       foreign key (cmisPersonRole_roleid)
       references person_role
Hibernate:

    alter table profile_int1_map
       add constraint FKs7yuk6miknatncgyjmufep2x0
       foreign key (id)
       references profile
2020-04-19 23:05:50 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
persisting pr
persisting p
done persisting
Hibernate:
    insert
    into
        person_role
        (roleid, email1)
    values
        (null, ?)
Hibernate:
    insert
    into
        profile
        (id, email, name)
    values
        (null, ?, ?)
Hibernate:
    insert
    into
        profile_int1_map
        (cmisPersonRole_roleid, id)
    values
        (?, ?)
us.pdinc.products.cresaptown.ds.beans.db.int1.PersonRole@3c
1
us.pdinc.products.cresaptown.ds.beans.db.frontend.Profile@3c
1
2020-04-19 23:05:50 INFO  StatisticalLoggingSessionEventListener:258 - Session Metrics {
    27100 nanoseconds spent acquiring 1 JDBC connections;
    71300 nanoseconds spent releasing 1 JDBC connections;
    831700 nanoseconds spent preparing 3 JDBC statements;
    5050700 nanoseconds spent executing 3 JDBC statements;
    0 nanoseconds spent executing 0 JDBC batches;
    0 nanoseconds spent performing 0 L2C puts;
    0 nanoseconds spent performing 0 L2C hits;
    0 nanoseconds spent performing 0 L2C misses;
    14639000 nanoseconds spent executing 2 flushes (flushing a total of 4 entities and 0 collections);
    0 nanoseconds spent executing 0 partial-flushes (flushing a total of 0 entities and 0 collections)
}
2020-04-19 23:05:50 INFO  SchemaDropperImpl$DelayedDropActionImpl:524 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@20749d9] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.
Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
2020-04-19 23:05:50 INFO  pooling:418 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:50 INFO  LogHelper:31 - HHH000204: Processing PersistenceUnitInfo [name: templatePU]
2020-04-19 23:05:50 WARN  CachingRegionFactory:48 - org.hibernate.testing.cache.CachingRegionFactory should be only used for testing.
2020-04-19 23:05:50 WARN  pooling:72 - HHH10001002: Using Hibernate built-in connection pool (not for production use!)
2020-04-19 23:05:50 INFO  pooling:115 - HHH10001005: using driver [org.h2.Driver] at URL [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
2020-04-19 23:05:50 INFO  pooling:124 - HHH10001001: Connection properties: {user=sa}
2020-04-19 23:05:50 INFO  pooling:129 - HHH10001003: Autocommit mode: false
2020-04-19 23:05:50 INFO  DriverManagerConnectionProviderImpl:249 - HHH000115: Hibernate connection pool size: 5 (min=1)
2020-04-19 23:05:50 INFO  Dialect:172 - HHH000400: Using dialect: org.hibernate.dialect.H2Dialect
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@5a00eb1e] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
Hibernate:

    create table person_role (
       roleid bigint generated by default as identity,
        email1 varchar(255),
        primary key (roleid)
    )
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@36fcf6c0] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    create table profile (
       id bigint generated by default as identity,
        email varchar(255),
        name varchar(255),
        primary key (id)
    )
Hibernate:

    create table profile_int1_map (
       cmisPersonRole_roleid bigint not null,
        id bigint not null,
        primary key (id)
    )
Hibernate:

    alter table profile_int1_map
       add constraint UK_2gwt5k7d8esq4ogpd3ldid633 unique (cmisPersonRole_roleid)
Hibernate:

    alter table profile_int1_map
       add constraint FKs8xhl15aywon4bpcwkexm18cj
       foreign key (cmisPersonRole_roleid)
       references person_role
Hibernate:

    alter table profile_int1_map
       add constraint FKs7yuk6miknatncgyjmufep2x0
       foreign key (id)
       references profile
2020-04-19 23:05:50 INFO  JtaPlatformInitiator:52 - HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.JBossStandAloneJtaPlatform]
2020-04-19 23:05:50 INFO  SchemaDropperImpl$DelayedDropActionImpl:524 - HHH000477: Starting delayed evictData of schema as part of SessionFactory shut-down'
Hibernate:

    drop table if exists person_role CASCADE
2020-04-19 23:05:50 INFO  access:47 - HHH10001501: Connection obtained from JdbcConnectionAccess [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcCon
nectionAccess@68217d41] for (non-JTA) DDL execution was not in auto-commit mode; the Connection 'local transaction' will be committed and the Connection will be set into auto-commit mode.

Hibernate:

    drop table if exists profile CASCADE
Hibernate:

    drop table if exists profile_int1_map CASCADE
2020-04-19 23:05:50 INFO  pooling:418 - HHH10001008: Cleaning up connection pool [jdbc:h2:mem:db1;DB_CLOSE_DELAY=-1]
Tests run: 4, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 3.824 sec &lt;&lt;&lt; FAILURE!
hhh13959TestProfile(org.hibernate.bugs.JPAUnitTestCase)  Time elapsed: 0.161 sec  &lt;&lt;&lt; ERROR!
javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : us.pdinc.products.cresaptown.ds.beans.db.frontend.Pr
ofile.cmisPersonRole
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
        at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:716)
        at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:696)
        at org.hibernate.bugs.JPAUnitTestCase.hhh13959TestProfile(JPAUnitTestCase.java:43)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value : us.pdinc.products.cresaptown.ds.beans.db.frontend.Profile.cmisPersonRole
        at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:111)
        at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:55)
        at org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:116)
        at org.hibernate.action.internal.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:125)
        at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:289)
        at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263)
        at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317)
        at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:330)
        at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287)
        at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193)
        at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:123)
        at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:185)
        at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:128)
        at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:55)
        at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:102)
        at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:710)
        ... 33 more

hhh13959TestBothRelateLater(org.hibernate.bugs.JPAUnitTestCase)  Time elapsed: 0.103 sec  &lt;&lt;&lt; ERROR!
javax.persistence.PersistenceException: org.hibernate.PropertyValueException: not-null property references a null or transient value : us.pdinc.products.cresaptown.ds.beans.db.frontend.Pr
ofile.cmisPersonRole
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:154)
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:181)
        at org.hibernate.internal.ExceptionConverterImpl.convert(ExceptionConverterImpl.java:188)
        at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:716)
        at org.hibernate.internal.SessionImpl.persist(SessionImpl.java:696)
        at org.hibernate.bugs.JPAUnitTestCase.hhh13959TestBothRelateLater(JPAUnitTestCase.java:136)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
        at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
        at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47)
        at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
        at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
        at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
        at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78)
        at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57)
        at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290)
        at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71)
        at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288)
        at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58)
        at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268)
        at org.junit.runners.ParentRunner.run(ParentRunner.java:363)
        at org.apache.maven.surefire.junit4.JUnit4Provider.execute(JUnit4Provider.java:252)
        at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:141)
        at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:112)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
        at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
        at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
        at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:115)
        at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Caused by: org.hibernate.PropertyValueException: not-null property references a null or transient value : us.pdinc.products.cresaptown.ds.beans.db.frontend.Profile.cmisPersonRole
        at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:111)
        at org.hibernate.engine.internal.Nullability.checkNullability(Nullability.java:55)
        at org.hibernate.action.internal.AbstractEntityInsertAction.nullifyTransientReferencesIfNotAlready(AbstractEntityInsertAction.java:116)
        at org.hibernate.action.internal.AbstractEntityInsertAction.makeEntityManaged(AbstractEntityInsertAction.java:125)
        at org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction(ActionQueue.java:289)
        at org.hibernate.engine.spi.ActionQueue.addInsertAction(ActionQueue.java:263)
        at org.hibernate.engine.spi.ActionQueue.addAction(ActionQueue.java:317)
        at org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction(AbstractSaveEventListener.java:330)
        at org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:287)
        at org.hibernate.event.internal.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:193)
        at org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:123)
        at org.hibernate.event.internal.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:185)
        at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:128)
        at org.hibernate.event.internal.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:55)
        at org.hibernate.event.service.internal.EventListenerGroupImpl.fireEventOnEachListener(EventListenerGroupImpl.java:102)
        at org.hibernate.internal.SessionImpl.firePersist(SessionImpl.java:710)
        ... 33 more

</pre> 
                                                            </div>
                                                        </div> </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-13959?inbox=true&focusedCommentId=106479&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-106479",
    "name": "View Comment"
      },
  "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-13959#add-comment?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9" 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-db2d2b0b-36e5-41e4-90d4-33959a15a94f" 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-13959#add-comment?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9" 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#100124-<span title="93e2dd39e9e22407b84b7c83c491ff40cd50ff04" data-commit-id="93e2dd39e9e22407b84b7c83c491ff40cd50ff04}">sha1:93e2dd3</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-e18cdf0f-f7fd-41e3-a67b-370a34dd4e79" 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>   
    </body>
</html>