Skip to content

Commit 4c9cc1d

Browse files
author
Gerald Unterrainer
committed
Merge branch 'develop'
2 parents af6c647 + a8568b8 commit 4c9cc1d

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
<modelVersion>4.0.0</modelVersion>
1919
<artifactId>http-server</artifactId>
20-
<version>0.2.13</version>
20+
<version>0.2.14</version>
2121
<name>HttpServer</name>
2222
<packaging>jar</packaging>
2323

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

+4-5
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)