| .. | .. |
|---|
| 10 | 10 | import java.util.stream.Collectors; |
|---|
| 11 | 11 | |
|---|
| 12 | 12 | import jakarta.annotation.security.RolesAllowed; |
|---|
| 13 | +import jakarta.enterprise.context.RequestScoped; |
|---|
| 13 | 14 | import jakarta.inject.Inject; |
|---|
| 14 | 15 | import jakarta.persistence.EntityManager; |
|---|
| 15 | 16 | import jakarta.persistence.TypedQuery; |
|---|
| .. | .. |
|---|
| 57 | 58 | * Last reviewed by JRA on Oct 5, 2025. |
|---|
| 58 | 59 | */ |
|---|
| 59 | 60 | @Path("/licensetype") |
|---|
| 61 | +@RequestScoped |
|---|
| 60 | 62 | public class LicenseTypeResource { |
|---|
| 61 | 63 | |
|---|
| 62 | 64 | private static final Logger LOG = LogManager.getLogger(LicenseTypeResource.class); |
|---|
| .. | .. |
|---|
| 64 | 66 | @Inject TokenHelper tokenHelper; |
|---|
| 65 | 67 | @Inject MetadataHelper metadataHelper; |
|---|
| 66 | 68 | |
|---|
| 67 | | - @Context EntityManager em; |
|---|
| 69 | + @Inject EntityManager em; |
|---|
| 68 | 70 | |
|---|
| 69 | 71 | public LicenseTypeResource() { } |
|---|
| 70 | 72 | |
|---|