Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.nativesql;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.nativesql;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.nativesql;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.nativesql;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.session;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.session;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.session;

Expand Down Expand Up @@ -169,9 +168,9 @@
factory.withTransaction(
// delete all the Books in a transaction
(session, tx) -> session.createQuery( "delete Book" ).executeUpdate()
// delete all the Authors

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
QueryProducer.createQuery
should be avoided because it has been deprecated.
.thenCompose( $ -> session.createQuery( "delete Author" ).executeUpdate() )
)

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
QueryProducer.createQuery
should be avoided because it has been deprecated.
.toCompletableFuture().join();
}
finally {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.example.session;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.adaptor.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.adaptor.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.adaptor.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.adaptor.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.adaptor.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
/**
* Utility classed helping adapt between Hibernate ORM's JDBC code
* and {@link org.hibernate.reactive.pool.ReactiveConnection}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.boot.spi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.boot.spi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.bythecode.enhance.spi.interceptor;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.bythecode.enhance.spi.internal;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.bythecode.spi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.common;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
/**
* APIs common to both {@link org.hibernate.reactive.stage.Stage}
* and {@link org.hibernate.reactive.mutiny.Mutiny}.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.common.spi;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.context;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.context.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.context.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.context.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.context.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright Red Hat Inc. and Hibernate Authors
*/
/**
* Strategies for associating state with the current reactive stream.
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine.impl;

Expand Down Expand Up @@ -705,10 +704,10 @@
final Collection<?> orphans = getOrphans( eventSource, entityName, pc );
final ReactiveSession session = (ReactiveSession) eventSource;
return loop( orphans, Objects::nonNull, orphan -> {
LOG.tracev( "Deleting orphaned entity instance: {0}", entityName );
return session.reactiveRemove( entityName, orphan, false, DeleteContext.create() );
} );
}

Check notice

Code scanning / CodeQL

Deprecated method or constructor invocation Note

Invoking
CompletionStages.loop
should be avoided because it has been deprecated.

private static Collection<?> getOrphans(EventSource eventSource, String entityName, PersistentCollection<?> pc) {
if ( pc.wasInitialized() ) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine.impl;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
/* Hibernate, Relational Persistence for Idiomatic Java
*
/*
* SPDX-License-Identifier: Apache-2.0
* Copyright: Red Hat Inc. and Hibernate Authors
* Copyright Red Hat Inc. and Hibernate Authors
*/
package org.hibernate.reactive.engine.impl;

Expand Down
Loading
Loading