Yes, that's actually where I'm going with it. I have some things in rough form that breaks out the different aspects of behavior into traits but I probably won't have it checked in until Monday.
Derek On Fri, Dec 12, 2008 at 10:25 PM, Kris Nuttycombe <[email protected] > wrote: > Hi, Derek, > > Have you considered making ScalaEntityManager a trait that can be mixed > into something that provides an EntityManager, rather than an abstract class > decorating one? I've taken that approach with good results; I think it makes > it a bit more flexible with respect to how the underlying EntityManager is > created. > > I've attached the version I've been working with. > > Kris > > > On Fri, Dec 12, 2008 at 4:28 PM, Derek Chen-Becker > <[email protected]>wrote: > >> I've reworked it a little and put it into its own project: >> >> http://github.com/dchenbecker/scalajpa/tree/master >> >> I've broken things down just a bit and added some more abstract classes to >> make it easier to use. In particular, now there's a LocalEM class that uses >> java.persistence.Persistence to retrieve the EM, and a JndiEM class that >> uses JNDI. Under the test source directory is an example of how to integrate >> with Lift, similar to how it's been done up to now. One thing I'm thinking >> about doing is reworking it a bit so that ScalaEntityManager becomes a >> per-instance usage, in case people want to use these classes outside of >> Lift. Right now it's very geared toward using a singleton accessor and using >> a per-thread management of instances. Please send me any questions or >> comments. >> >> Cheers, >> >> Derek >> >> PS - I'm going to talk to David B. to see if this can be hosted as a maven >> module on scala-tools.org so that you can just drop it in your POM in the >> future. >> >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Lift" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/liftweb?hl=en -~----------~----~----~----~------~----~------~--~---
