RE: JPA best-practices?

2007-11-23 Thread Chris Colman
And you need a framework for this? Come on! An extremely lightweight framework that gives me dependency injection and helps manage the myriad of repository and service classes I end up with in large enterprise systems? All without the need for heavyweight Swing and the XML hell and runtime

Re: JPA best-practices?

2007-11-16 Thread Nino Saturnino Martinez Vazquez Wael
That could be great, that way we could support each other.. Do you have an idea on how to get started? regards Nino Uwe Schäfer wrote: Nino Saturnino Martinez Vazquez Wael schrieb: Im actually about to write a tutorial thing about howto JPA-HIBERNATE-SPRING in wicket... It could be something

Re: JPA best-practices?

2007-11-16 Thread Korbinian Bachl
Uwe Schäfer schrieb: Maris Orbidans schrieb: Let's remember good old EJB's. Inject an EntityManager in a session bean facade and EJB container will handle all concurrency issues. No need to write any boilerplate code. that´s where i come from. problem is, that you domain object aren´t

Re: JPA best-practices?

2007-11-16 Thread Uwe Schäfer
Nino Saturnino Martinez Vazquez Wael schrieb: Im actually about to write a tutorial thing about howto JPA-HIBERNATE-SPRING in wicket... It could be something worth looking at, Im trying to have a clean seperation of domain / database and frontend (wicket). interesting. i could write a

Re: JPA best-practices?

2007-11-16 Thread Francis De Brabandere
if you use EJB3 you really want to use the wicket-contrib-javaee project (wicketstuff) all you need to do is call you @EJB and rest is handled automatically ! That project needs an update for 1.3 Add wicket-ioc dep / remove spring dep + some other unneeded deps / fix package names, I

Re: JPA best-practices?

2007-11-16 Thread Uwe Schäfer
Maris Orbidans schrieb: Let's remember good old EJB's. Inject an EntityManager in a session bean facade and EJB container will handle all concurrency issues. No need to write any boilerplate code. that´s where i come from. problem is, that you domain object aren´t able to lazily fetch

Re: JPA best-practices?

2007-11-16 Thread Maris Orbidans
Let's remember good old EJB's. Inject an EntityManager in a session bean facade and EJB container will handle all concurrency issues. No need to write any boilerplate code. BTW I have seen that some people use OpenEntityManagerInViewFilter and map it to url pattern /*. It seems that an

Re: JPA best-practices?

2007-11-16 Thread Korbinian Bachl
Francis De Brabandere schrieb: if you use EJB3 you really want to use the wicket-contrib-javaee project (wicketstuff) all you need to do is call you @EJB and rest is handled automatically ! That project needs an update for 1.3 Add wicket-ioc dep / remove spring dep + some other unneeded

Re: JPA best-practices?

2007-11-16 Thread Francis De Brabandere
On Nov 16, 2007 8:02 PM, Korbinian Bachl [EMAIL PROTECTED] wrote: That project needs an update for 1.3 Add wicket-ioc dep / remove spring dep + some other unneeded deps / fix package names, I contacted the author but got no response. Plus you have to define all beans in the web.xml which

Re: JPA best-practices?

2007-11-13 Thread Anders Peterson
Chris Colman wrote: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about !? No,

RE: JPA best-practices?

2007-11-13 Thread Chris Colman
Chris Colman wrote: It seems it's also possible for a few other ORM tools to conform to that standard. Apart from Hibernate and JPOX you've got TopLink, Cayenne and others. That's my point. Which would you rather depend on; exPOJO or JPA? Two different things: exPOJO is a

Re: JPA best-practices?

2007-11-13 Thread Uwe Schäfer
Al Maw schrieb: Hi Al Subclass WebRequestCycle, and construct it with an EntityManager. thanks! That may well be an alternative to the common ServletFilter-pattern. One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from the RequestCycle,

Re: JPA best-practices?

2007-11-13 Thread Al Maw
Uwe Schäfer wrote: Subclass WebRequestCycle, and construct it with an EntityManager. thanks! That may well be an alternative to the common ServletFilter-pattern. Well, err, yes. ;-) One question: isn´t it a little better to have the ThreadLocal Holder for the EntityManager separate from

Re: JPA best-practices?

2007-11-12 Thread Nino Saturnino Martinez Vazquez Wael
Do you know if theres any plans on making a maven2 archetype for qwicket? Evan Chooly wrote: There's also qwicket.sf.net that specifically uses JPA+spring. I'm finishing up updates now for 1.3 support and improved project setup. SVN is your best bet there but I'm hoping to put up the new

Re: JPA best-practices?

2007-11-12 Thread Uwe Schäfer
Chris Colman schrieb: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about !? As

Re: JPA best-practices?

2007-11-12 Thread Evan Chooly
That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) On Nov 12, 2007 3:47 AM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Do you know if theres any plans on making a

Re: JPA best-practices?

2007-11-12 Thread n8han
Evan Chooly wrote: Do you know if theres any plans on making a maven2 archetype for qwicket? That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) Good luck! Archetypes are

Re: JPA best-practices?

2007-11-12 Thread Al Maw
Uwe Schäfer wrote: i plan to use JPA together with Wicket. Are there any battle-proven best-practices out there of how to handle EnityManagers and Transactions? What do other people use (no, not the spring crowd ;) ? One EntityManager per Request seems to be the obvious idea and a guice

RE: JPA best-practices?

2007-11-12 Thread Chris Colman
Chris Colman schrieb: The obvious benefit in such an approach is that your POJO model and the services that you provide to implement business rules etc., remain completely portable to different persistence engines - ie., no vendor lock in. well, i thought that was JPA was all about

RE: JPA best-practices?

2007-11-12 Thread Chris Colman
Evan Chooly wrote: Do you know if theres any plans on making a maven2 archetype for qwicket? That's a definite feature i plan on adding as soon as I can. As a noted maven hater, though, it'll take some time and libations to help me swallow my pride. :) Good luck! Archetypes

Re: JPA best-practices?

2007-11-10 Thread Evan Chooly
There's also qwicket.sf.net that specifically uses JPA+spring. I'm finishing up updates now for 1.3 support and improved project setup. SVN is your best bet there but I'm hoping to put up the new version this weekend. On Nov 9, 2007 10:04 AM, Francis De Brabandere [EMAIL PROTECTED] wrote: You

RE: JPA best-practices?

2007-11-10 Thread Chris Colman
i plan to use JPA together with Wicket. Are there any battle-proven best-practices out there of how to handle EnityManagers and Transactions? What do other people use (no, not the spring crowd ;) ? One EntityManager per Request seems to be the obvious idea and a guice

Re: JPA best-practices?

2007-11-09 Thread Francis De Brabandere
You might want to have a look at http://databinder.net, that project is using hibernate but the setup should be similar? The big problem is that a EntityManager is not thread-safe and should indeed be created per request. Let me know if you get there! On Nov 9, 2007 1:52 PM, Uwe Schäfer [EMAIL