Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-15 Thread Emmanuel Bernard
Well yes, ideally I would like to get SearchMapping as an interface but the big question becomes: how do I get the SearchMapping instance from? and how easy is that. On 14 déc. 2009, at 18:58, Amin Mohammed-Coleman wrote: > Hi Sanne > > Thanks for your reply. I was thinking mostly around impl

Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-15 Thread Emmanuel Bernard
AS we discussed initially, I do think it's the best approach to prevent future mistakes in the API extension. While interfaces will work, I don't think an abstract class scheme would work though. I tried on a similar API and it did not cut it for me at the time. Emmanuel On 14 déc. 2009, at 15

Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-14 Thread Amin Mohammed-Coleman
Hi Sanne Thanks for your reply. I was thinking mostly around implementation side of things. I guess it would be great to get an idea or discuss how this may impact the API. I know Emmanuel mentioned moving SearchMapping into an interface. Cheers Amin Sent from my iPhone On 14 Dec 2009, a

Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-14 Thread Sanne Grinovero
Hi Amin, your idea looks good to me; is this discussion affecting only implementation or does it have some impact on APIs? This is just to check for yourself that you're not forgetting something right? Just wondering: it makes sense in both cases, sorry I'm looking into it after much time. Cheers,

Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-14 Thread Amin Mohammed-Coleman
Hi It seems as though my email may have been a bit too vague. So I'll try to explain more or provide some more information to get some advice. At present none of the mapping class extend any particular interface or extend any abstract classes so it becomes difficult to a certain extent to remembe

Re: [hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-14 Thread Emmanuel Bernard
Guys, Amin needs feedback. On 10 déc. 2009, at 21:12, Amin Mohammed-Coleman wrote: > Hi > > I was wondering whether to get some thoughts about the following: > > At present none of the mapping classes implement any interface or extend any > abstract classes. So I was thinking of introducing so

[hibernate-dev] Interface for mapping classes : Programmatic API

2009-12-10 Thread Amin Mohammed-Coleman
Hi I was wondering whether to get some thoughts about the following: At present none of the mapping classes implement any interface or extend any abstract classes. So I was thinking of introducing some form of interface for property level mapping so that one remembers (mostly me :)) to add all t