Skip to content

Commit 0753949

Browse files
author
Gerald Unterrainer
committed
fix build problems
1 parent 1791a05 commit 0753949

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/main/java/info/unterrainer/commons/httpserver/daos/BasicQueryEntityManagerBuilder.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
import javax.persistence.EntityManager;
88

9-
import org.eclipse.jetty.webapp.WebAppContext.Context;
10-
119
import info.unterrainer.commons.httpserver.enums.Attribute;
1210
import info.unterrainer.commons.rdbutils.entities.BasicJpa;
11+
import io.javalin.http.Context;
1312
import lombok.AccessLevel;
1413
import lombok.Getter;
1514
import lombok.RequiredArgsConstructor;
@@ -43,7 +42,7 @@ public R entityManager(final EntityManager em) {
4342
* <p>
4443
* Overwrites the existing set.
4544
*
46-
* @param id the tenant-ID to use
45+
* @param ids the tenant-ID to use
4746
* @return an instance of this builder to provide a fluent interface
4847
*/
4948
@SuppressWarnings("unchecked")
@@ -63,8 +62,8 @@ public R tenant(final Long... ids) {
6362
*/
6463
@SuppressWarnings("unchecked")
6564
public R tenant(final Context ctx) {
66-
tenantIds = (Set<Long>) ctx.getAttribute(Attribute.USER_TENANTS_READ_SET);
67-
writeTenantIds = (Set<Long>) ctx.getAttribute(Attribute.USER_TENANTS_WRITE_SET);
65+
tenantIds = (Set<Long>) ctx.attribute(Attribute.USER_TENANTS_READ_SET);
66+
writeTenantIds = (Set<Long>) ctx.attribute(Attribute.USER_TENANTS_WRITE_SET);
6867
return (R) this;
6968
}
7069
}

0 commit comments

Comments
 (0)