Skip to content

Commit

Permalink
HSEARCH-5082 WIP-clarify: Upgrade to Hibernate ORM 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marko-bekhta committed Apr 29, 2024
1 parent 446685c commit 5477f70
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public AdditionalMappingBuilder index(String name, String columns) {
index.setColumnList( columns );

entity.getTable()
.getIndex()
.getIndexes()
.add( index );
return this;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ public HibernateOrmSearchQueryAdapter<R> setTimeout(int timeout) {

@Override
public HibernateOrmSearchQueryAdapter<R> setTimeout(Integer timeout) {
// TODO: this method comes from JPA and there timeout is in ms ?
// https://jakarta.ee/specifications/persistence/3.2/jakarta-persistence-spec-3.2-m2 ctrl+f "Set the query timeout, in milliseconds"
// but the one above is in sec from ORM itself (CommonQueryContract)
delegate.failAfter( timeout == null ? null : timeout.longValue(), TimeUnit.SECONDS );
return this;
}
Expand Down

0 comments on commit 5477f70

Please sign in to comment.