Hi MustangCorder,
I tried this
Code:
String queryString = "select t.teilId from Teil t join t.disponentAssoziation disponent where disponent.disponentId like ?";
List resultList = session.createQuery(queryString).setLong(0, disponent.getDisponentId().longValue()).list();
but always get the error-message:
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.faces.el.EvaluationException: Error getting property 'anzahlDoppelblitz' from bean of type business.LoginBean: org.hibernate.HibernateException: Not able to obtain connection
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:844)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
org.apache.jsp.Eingangskorb_jsp._jspService(org.apache.jsp.Eingangskorb_jsp:95)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)
org.jenia.faces.template.handler.ViewHandler.renderView(ViewHandler.java:74)
com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
I don't know why! I hope you or s.o. else could help me.
Thanks for the replies.
bande