db-jdo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilan Kirsh <ki...@objectdb.com>
Subject Re: 'Implements' annotation and XML element
Date Sat, 06 Oct 2007 18:22:06 GMT
Hi Erik,

You are right that without the Implements annotation / element, a few more 
interfaces will have to be loaded by the implementation (at least during 
enhancement), but is it really an issue? By the way, with 
'persistence-capable-superclass' you could also avoid loading the non 
persistence capable super class going directly to the first persistence 
capable super class.

However, because duplication in development is very bad, and the extra 
processing time is negligible - I suggest to deprecate Implements.

Craig, should I update the JIRA?

Ilan

----- Original Message ----- 
From: "Erik Bengtson" <erik@jpox.org>
To: "Ilan Kirsh" <kirsh@objectdb.com>
Sent: Saturday, October 06, 2007 8:05 PM
Subject: Re: 'Implements' annotation and XML element


>I mean in super pc you have a 1-1 association, and by the moment you need 
>to know the super pc class, you have already loaded the pc class, while 
>implements has a 1-N, where N is not a fixed number
> --   BlackBerry® from Mobistar    ---
>
> -----Original Message-----
> From: "Erik Bengtson" <erik@jpox.org>
>
> Date: Sat, 6 Oct 2007 17:53:12
> To:"Ilan Kirsh" <kirsh@objectdb.com>
> Subject: Re: 'Implements' annotation and XML element
>
>
> I think the utility is go cases where classes have not been loaded. 
> Example: schema creation does not need to load all pc classes to discover 
> which ones implements the interface, but only those declared.
>
> While super pc class is used for discovery in bottom-up(child pc->super), 
> implements is top-down (interface->classes)
> --   BlackBerry® from Mobistar    ---
>
> -----Original Message-----
> From: Ilan Kirsh <kirsh@objectdb.com>
>
> Date: Sat, 06 Oct 2007 19:17:42
> To:JDO Expert Group <jdo-experts-ext@sun.com>
> Subject: Fw: 'Implements' annotation and XML element
>
>
> Sent again, now to jdo-experts-ext@Sun.COM
>
> ----- Original Message ----- 
> From: "Ilan Kirsh" <kirsh@objectdb.com>
> To: <jdo-dev@db.apache.org>
> Sent: Friday, October 05, 2007 1:15 AM
> Subject: 'Implements' annotation and XML element
>
>
> Hi,
>
> The 'Implements' annotation (and the equivalent XML element) remind me
> the 'persistence-capable-superclass' XML attribute that is deprecated now.
>
> If persistence capable interfaces are marked as such by annotations
> (or in the XML metadata), why should we have this duplication?
>
> Implementations should be able to find implemented persistence capable
> interfaces as they find a super persistence capable class.
>
> Ilan Kirsh
> ObjectDB Software
> http://www.objectdb.com
>
>
>
>
> 



Mime
View raw message