Skip to content

Commit e8da78e

Browse files
committed
HSEARCH-5082 WIP-clarify: Upgrade to Hibernate ORM 7.0
1 parent 477e828 commit e8da78e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

mapper/orm-outbox-polling/src/main/java/org/hibernate/search/mapper/orm/outboxpolling/mapping/impl/AdditionalMappingBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public AdditionalMappingBuilder index(String name, String columns) {
5656
index.setColumnList( columns );
5757

5858
entity.getTable()
59-
.getIndex()
59+
.getIndexes()
6060
.add( index );
6161
return this;
6262
}

mapper/orm/src/main/java/org/hibernate/search/mapper/orm/search/query/impl/HibernateOrmSearchQueryAdapter.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,9 @@ public HibernateOrmSearchQueryAdapter<R> setTimeout(int timeout) {
140140

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

0 commit comments

Comments
 (0)