java-ee-8

Hibernate filter does not apply for join entity

南笙酒味 提交于 2021-01-27 19:35:07
问题 I am trying to understand hibernate filters, i thought that the filter is applied even if the query is not started from the filtered entity and can be applied if i just join to it. My entities: @Table(name = "SPM_SECTION", schema = "TEST") @GenericGenerator(name = "MODSEC_ID.GEN", strategy = "uuid2") public class ModuleSection implements Serializable { private AcademicClass academicClass; @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "CLASS_ID") public AcademicClass getAcademicClass()

Login not forwarding correctly with CustomFormAuth and o:form

99封情书 提交于 2020-07-15 09:22:10
问题 I'm trying to implement Jakarta Security on my web project, to do so I'm following the amazing "The Definitive Guide to JSF in Java EE 8" by Bauke Scholtz and Arjan Tijms but it seems that I'm hitting a wall. When I type in a restricted url in the address bar the forward happens properly and I see the login page but after submitting the form the page is not redirected and the login page seems to be reloaded (the fields are emptied, but the url in the address bar is still the one from the

JSF 2.3 Websockets throw a NullPointerException when using PrimeFaces MenuItem with ajax=true

此生再无相见时 提交于 2020-06-29 04:15:38
问题 I get a NullPointerException when navigating on a PrimeFaces menu item with ajax = true when JSF 2.3 websockets are present in the pages. Below is the exception: java.lang.NullPointerException at com.sun.faces.push.WebsocketFacesListener.processEvent(WebsocketFacesListener.java:100) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:123) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:110) at com.sun.faces.application.applicationimpl.Events