[java ee programming] Doubt about persistence with several entities...

2009-06-03 Thread federicomiralles
Hi Mr. Shin! In this opportunity i write you to ask you about how to do the persistence using DAO pattern (like we used in J2EEHomework-hibernatebasics - Lab 3514), but when interpose several entities in ONE transaction (which respective dao interfaces are in different scopes). To make myself m

SOLVEDRe: [java ee programming] org.hibernate.LazyInitializationException ERROR

2009-05-31 Thread federicomiralles
Biljana thanks for your answer! I find why in the LAB's project it doesn't need the attribute Lazy="false" in Event.hbm.xml. It's cause the session is never closed (the line is commetted) as you can see in the pasted-code: public Event find(Long id) throws DataAccessLayerException { Eve

[java ee programming] org.hibernate.LazyInitializationException ERROR

2009-05-30 Thread federicomiralles
Hi everyone!!! I don't understand why when i run the following code (using DAO pattern): Hobby hobby = hobbyDao.find(h.getMyHobbyId()); System.out.println("Hobby = " + hobby.getHobby()); System.out.println("Years of practice = "+hobby.getYearIstartedThisHobby()); it thr

[java ee programming] Date of ending of Java EE Online Course...

2009-05-08 Thread federicomiralles
Hi Mr. Shin! I'm dizzy with the dates of the course. First it was stipulated to finish this spring/09 session in june 13th ("...- the deadline for the homework submission is 2 weeks of the last class, which means June 13th, 2009 as it currently stands -..."), but now in the site it says that it