On 7/19/11 3:29 AM, "Jasha Joachimsthal" <[email protected]> wrote:
>I'm still working on storing OAuth information in the database (almost >done >now). I see a difference in handling database objects/queries between the >rave-portal module and the rave-shindig module. >All rave-portal beans implement o.a.rave.portal.model.BasicEntity while >all >rave-shindig beans implement >o.a.shindig.social.opensocial.jpa.api.DbObject. >In rave-portal all classes that handle DB queries implement >o.a.rave.portal.repository.Repository and are configured through Spring. >The >Repository implementations extend AbstractJpaRepository which supports at >simple CRD operations. The Repository implementations have test classes. >In rave-shindig there seems to be no common interface and injection is >done >through Guice (the @Injects are commented out btw). Tests are missing. > >Is there someone who has time (and knowledge) to create a common basis for >database operations in both modules and set up tests for DB operations >rave-shindig? I will update the ticket for adding unit tests to rave-shindig to replicate the rave-portal JPA pattern to rave-shindig. Probably the easiest thing to do is create a rave-common project under trunk and start putting this pattern and any other common code in that project. I can take this on after I finish canvas/home view toggling. > > >Jasha Joachimsthal > >Europe - Amsterdam - Oosteinde 11, 1017 WT Amsterdam - +31(0)20 522 4466 >US - Boston - 1 Broadway, Cambridge, MA 02142 - +1 877 414 4776 (toll >free) > >www.onehippo.com
