first off, i admit i didn't know too much about domdrides.

so it seems i was talking about the "entity" part. e.g. extend
UuidEntity in your domain, that is orthogonal to gluw. concerning
domdrides repository approach, as a quick idea i can imagine
implementing gluw in an adapter pattern manner. not sure about generic
params though.

/**
* A Gluw-based implementation of a person repository.
*/
public class GluwPersonRepository extends
GluwRepository<Person,String> implements PersonRepository
 {
    public GluwPersonRepository()
    {
      super(Person.class);
    }
}

public abstract class GluwRepository<EntityType extends
Entity<IdType>, IdType extends Serializable> extends
gluw.repo.RepositoryImpl<EntityType extends Entity<IdType> implements
Repository<EntityType, IdType>
 {

    protected HibernateRepository(Class<EntityType> entityClass)
     {
          super(entityClass); // will have to change constructor's package scope
     }


 // adapt existing methods signatures to super methods

 // new methods such as contains() not found in gluw.repo.Repository,
implement by calling getDB() which provides an instance of ODB
(neodatis)
 // - analogous to spring's HibernateDaoSupport

}

note you won't be taking advantage of the ootb
gluw.repo.Repository<Entity> if you use domdrides approach
(obviously). do you think integration is feasible?

francisco

ps: i should re-examine the way i'm handling getById(Serializable id).
as i don't force the end user to extend any particular domain base
class, i use a "string"/reflection-style ODB query -- which can cause
trouble if the id field is not present. will have to evaluate
tradeoffs of both approaches

On Fri, Sep 5, 2008 at 12:56 PM, James Carman
<[EMAIL PROTECTED]> wrote:
> Really?  Would it be easy to implement this interface:
>
> http://domdrides.sourceforge.net/domdrides-core/apidocs/org/domdrides/repository/Repository.html
>
> If so, I'd be interested in the code as another submodule to domdrides
> (we've got hibernate, jpa, and iBATIS right now).
>
> On Fri, Sep 5, 2008 at 1:49 AM, Fernando Wermus
> <[EMAIL PROTECTED]> wrote:
>> Francisco,
>>       I integrated db4o with wicket.
>>
>> bye!
>>
>> On Thu, Aug 21, 2008 at 9:25 AM, francisco treacy <
>> [EMAIL PROTECTED]> wrote:
>>
>>> sure!
>>> when i'm finished with neodatis integration, i'll open source the
>>> whole thing (really small though). we could then create a
>>> wicket-iolite archetype. i'll check if all the dependencies are
>>> available in public maven repos.
>>>
>>> i'll keep you updated. i'm looking for a name for this thing... have
>>> already 2 or 3 but suggestions are welcome :)
>>>
>>> francisco
>>>
>>>
>>>
>>> On Thu, Aug 21, 2008 at 1:54 AM, Nino Saturnino Martinez Vazquez Wael
>>> <[EMAIL PROTECTED]> wrote:
>>> > Really great, now we just need it to get packed with Wicket iolite:)
>>> >
>>> > francisco treacy wrote:
>>> >>
>>> >> hi guys,
>>> >>
>>> >> i started to work on a little utility to glue some libraries that i
>>> >> already use with wicket. they became a standard stack when i develop
>>> >> applications: these are guice, salve, warp-persist and neodatis odb.
>>> >>
>>> >> this utility is meant to work with wicket, so i thought it would be
>>> >> nice to add some wicket-specific functionality like databinder does,
>>> >> for example.
>>> >>
>>> >> just a simple library to bootstrap with wicket, providing
>>> >> out-of-the-box dependency injection, transactions and persistence to
>>> >> your domain classes. i imagine neodatis could be easily replaced with
>>> >> any other database, thanks to warp-persist's pluggable persistence
>>> >> strategies.
>>> >>
>>> >> perhaps somebody else is using the same technologies and finds this
>>> >> idea worthwhile. more here:
>>> >>
>>> >>
>>> http://blog.zoptio.net/2008/08/21/wicket-like-framework-to-complement-wicket/
>>> >>
>>> >> let me know what you think -- even if it's complete nonsense :)  thanks!
>>> >>
>>> >> francisco
>>> >>
>>> >> ---------------------------------------------------------------------
>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>>> >>
>>> >>
>>> >
>>> > --
>>> > -Wicket for love
>>> >
>>> > Nino Martinez Wael
>>> > Java Specialist @ Jayway DK
>>> > http://www.jayway.dk
>>> > +45 2936 7684
>>> >
>>> >
>>> > ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> > For additional commands, e-mail: [EMAIL PROTECTED]
>>> >
>>> >
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> --
>> Fernando Wermus.
>>
>> www.linkedin.com/in/fernandowermus
>> http://mientretiempo.blogspot.com/
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to