JSP « Load « JPA Q&A





1. Lazy loading in JPA    coderanch.com

Hi All, I have a question about lazy loading... I have the following relationship 1 Book has 0..* Reviews. Scenario is User searches for books. And then clicks on the book of interest. The system should display all the Reviews for the books. I am using JPA and I have modelled my Book class to have a List objects. I have ...

2. Hibernate error when loading JSP    coderanch.com

David Newton wrote:All Hibernate/DB stuff should be handled in the servlet/whatever, not in the JSP. Don't store the user ID in the session, otherwise you have to look up the user on every request: store the user object in session. I was storing the user object in the session, but that's when I was getting the no session errors. I'm not ...

3. Lazy loading in JPA(Hibernate)    coderanch.com

I have a question regarding lazy loading in hibernate : Say I have a following entity : @Entity public class Parent{ ... @OneToMany(fetch = FetchType.LAZY) private Set childs=new HashSet(); } It is obvious from the code that collection of child will be lazily loaded. Assume In database each parent have million records of child. Assuming session is open and childs are ...

4. How to eliminate lazy loading in JSP???    forum.hibernate.org

There are two table "policy" and "insurant"; The relation between them is following: policy.hbm.xml ............... ................... when I search policy in JSP,it is very slow. I found a greate number of sql in console ............ Hibernate:select .... from insurant where policy=? Hibernate:select .... ...

5. Need Help on loading values from JSP to Set    forum.hibernate.org

Hi, I am using Hibernate Version 2.1.6 in our application, which is J2EE app with Struts and SQL server 2000 DB. In our application, I have a problem in retrieving values from the JSP for a Set of ChildVOs, which is part of a ParentVO. This set is a SortSet (sort="natural") with childNumber as the key to sort, which is implemented ...

6. while loading Jsp with F5 key    forum.hibernate.org

tpMgr.runServiceNoHandler("ServiceName", "Name", params ); if (tpMgr.getServiceResult() instanceof ArrayList) { arBeanName = ((ArrayList) tpMgr.getServiceResult()); tpMgr.clearServiceResult(); } I am developing appliction with Hibernate technology. This code i have written in jsp and works fine. , but if i use F5 key to refresh this jsp page it throws an error. it throws an error like this Caused by: org.hibernate.exception.GenericJDBCException: could not execute query ...