I worked on ActivityDb today and finally got it to persist - after fixing three bugs (see Jira-773 for more details). And ActivityServiceDb is in not much better shape as it's looking rather bare at the moment. And of course, no unit tests are yet covering these classes :)
Is anyone else using the samples code as a basis for integrating a JPA persistence layer with shindig?! Surely someone who has got shindig up and running with a decent persistence layer could contribute their code back into the project, rather than us newcomers having to struggle to create and integrate our own? 2008/12/8 Louis Ryan <[EMAIL PROTECTED]> > Hey, > > Unfortunately the person in the best situation to answer your questions is > Ian Boston and he is unavailable at the moment. I havent looked at the code > in any detail so I can't really comment. Anyone else making serious use of > this? > > -Louis > > On Mon, Dec 8, 2008 at 9:21 AM, chico charlesworth < > [EMAIL PROTECTED]> wrote: > > > I've been spending the last few days trying to get started on integrating > > shindig with a JPA persistence layer which is based on shindig-samples. > In > > doing this, I've extended RestfulJsonPeopleTest to further test > > PersonServiceDb, where I've just managed to get testGetPersonJson() > working > > sucessfully, although I found a couple of bugs on the way (JIRA 769 and > > 770). > > > > I've now moved on to trying to get RestfulJsonPeopleTest.testGetPeople() > > working, and I see the method implementation of > PersonServiceDb.getPeople() > > references the following constants in PersonDb: > > - JPQL_FINDALLPERSON, JPQL_FINDPERSON_BY_FRIENDS, > > JPQL_FINDPERSON_BY_GROUP, > > and JPQL_FINDPERSON. > > All these constants are set to null in PersonDb, which makes me believe > > that > > there's still work to be done in this area. > > > > As you can see I'm trying to reuse as much from the social-api and > samples > > modules as I can, but I'm concerned that the samples code is not really > > that > > reliable at the moment, and that it's going to be very time consuming to > > make proper use of it. For example, the test coverage for > PersonServiceDb, > > ActivityServiceDb and AppDataServiceDb is almost non-existent. Is there > any > > ongoing efforts at the moment to improve the samples module, or should I > > consider moving away from samples all together and writing the > persistence > > layer from scratch? > > > > Cheers > > Chico > > >

