Skip to content

Commit

Permalink
Fix SqlKind specification error (#341)
Browse files Browse the repository at this point in the history
  • Loading branch information
HidekiSugimoto189 authored Oct 4, 2024
1 parent e397be8 commit d66a874
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/jp/co/future/uroborosql/SqlAgentImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -2217,7 +2217,7 @@ public <E> E updateAndReturn(final E entity) {
/**
* {@inheritDoc}
*
* @see jp.co.future.uroborosql.SqlAgent#delete(java.lang.Class)
* @see jp.co.future.uroborosql.SqlAgent#update(java.lang.Class)
*/
@Override
public <E> SqlEntityUpdate<E> update(final Class<? extends E> entityType) {
Expand All @@ -2230,11 +2230,11 @@ public <E> SqlEntityUpdate<E> update(final Class<? extends E> entityType) {
var metadata = handler.getMetadata(this.transactionManager, entityType);

var context = handler.createUpdateContext(this, metadata, entityType, false);
context.setSqlKind(SqlKind.ENTITY_DELETE);
context.setSqlKind(SqlKind.ENTITY_UPDATE);

return new SqlEntityUpdateImpl<>(this, handler, metadata, context, entityType);
} catch (SQLException ex) {
throw new EntitySqlRuntimeException(SqlKind.ENTITY_DELETE, ex);
throw new EntitySqlRuntimeException(SqlKind.ENTITY_UPDATE, ex);
}
}

Expand Down

0 comments on commit d66a874

Please sign in to comment.