[hibernate-issues] [JIRA] (HHH-13959) Additional regressions not captured in HHH-9798 (e.g. nullability and uniqueness) for @OneToOne with @JoinTable

IT Support (JIRA) jira at hibernate.atlassian.net
Sun Apr 19 23:06:47 EDT 2020


IT Support ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A7c7fc415-3805-43c8-9dfa-7cbe1117db94 ) *commented* on HHH-13959 ( https://hibernate.atlassian.net/browse/HHH-13959?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9 )

Re: Additional regressions not captured in HHH-9798 (e.g. nullability and uniqueness) for @OneToOne with @JoinTable ( https://hibernate.atlassian.net/browse/HHH-13959?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9 )

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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 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 at 3c
1
us.pdinc.products.cresaptown.ds.beans.db.frontend.Profile at 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 at 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 at 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 at 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 at 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 <<< FAILURE!
hhh13959TestProfile(org.hibernate.bugs.JPAUnitTestCase)  Time elapsed: 0.161 sec  <<< 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  <<< 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

( https://hibernate.atlassian.net/browse/HHH-13959#add-comment?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HHH-13959#add-comment?atlOrigin=eyJpIjoiMmI5OGJjYjBjNTg0NDhkYTkxNGEzMmY0ZDk0Y2ZhOGYiLCJwIjoiaiJ9 )

Get Jira notifications on your phone! Download the Jira Cloud app for Android ( https://play.google.com/store/apps/details?id=com.atlassian.android.jira.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100124- sha1:93e2dd3 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200420/dc6a9978/attachment.html 


More information about the hibernate-issues mailing list