On 11/12/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > I use Spring and dependency-injection a lot, but I don't know see that > injecting the EntityManager buys us very much, especially now that we > have a standard API. So, I"ve just been using a static class that > instantiates the EM as a singleton. No big woof. >
I would be careful, Ted, there is a one-to-one relationship with the EM and the transaction - http://openjpa.apache.org/docs/latest/manual/jpa_overview_em.html I'll finish up this "persistence" layer (DAOs / Entities) today or tomorrow and put it out somewhere for you to take a look at. I don't mind if we don't use what I've got, since it's really more about me learning JPA than anything else. -Wes -- Wesley Wannemacher President, Head Engineer/Consultant WanTii, Inc. http://www.wantii.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]