Re: [FRIDAY] JPA War Stories?

2007-09-17 Thread Piero Sartini
We do use TopLink Essentials. Beside the somewhat confusing error messages already mentioned by musachy we are very happy with this choice. JPA is just great :-) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [FRIDAY] JPA War Stories?

2007-09-16 Thread Haroon Rafique
On Friday at 3:01pm, MB=Musachy Barroso [EMAIL PROTECTED] wrote: MB I'm using it, and I love it, the only problem I've found so far is MB that errors and exceptions do not help at all, like this one I get MB from time to time (got it 2 minutes ago): MB MB javax.servlet.ServletException:

Re: [FRIDAY] JPA War Stories?

2007-09-16 Thread Musachy Barroso
I thought I was the only one. I had a tough time getting that @Transactional(readOnly = true) sorted out as well. For DAOs that only have read only operations, I typically annotate with @Transactional at the class level and then with @Transactional(readOnly = true) on all the methods. Is that

Re: [FRIDAY] JPA War Stories?

2007-09-15 Thread nicolas de loof
Venturing slightly (more) off-topic, I recently switched from having my DAOs extend from Spring's HibernateDaoSupport, and using HibernateTemplate, to just going directly to the Hibernate API. Or, now, to the JPA API. I don't benefit from Spring's exception translation that way, but you know

Re: [FRIDAY] JPA War Stories?

2007-09-15 Thread Alvaro Sanchez-Mariscal
We're also using Toplink JPA in Tomcat. Appart from the problems we had configuring class weaving, it's quite simple for us. On 9/14/07, Ted Husted [EMAIL PROTECTED] wrote: Since we've had the Struts2 Spring-JPA tutorial up for a while, I was wondering if many Struts developers were using a

[FRIDAY] JPA War Stories?

2007-09-14 Thread Ted Husted
Since we've had the Struts2 Spring-JPA tutorial up for a while, I was wondering if many Struts developers were using a Java Persistence API implementation nowadays, whether the experience has been positive, and which implementation folks are using (Hibernate, TopLink, OpenJPA). So, any JPA war

Re: [FRIDAY] JPA War Stories?

2007-09-14 Thread Musachy Barroso
I'm using it, and I love it, the only problem I've found so far is that errors and exceptions do not help at all, like this one I get from time to time (got it 2 minutes ago): javax.servlet.ServletException: java.lang.IllegalStateException: Attempting to execute an operation on a closed

Re: [FRIDAY] JPA War Stories?

2007-09-14 Thread Jim Cushing
I've been using JPA annotations with Hibernate for a while, but still using the Hibernate API (SessionFactory, etc.). Those are great, and I felt right at home with them after using XDoclet to set up Hibernate mappings for about two years before that. I'm just getting started using the