openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From is_maximum <mnr...@gmail.com>
Subject Re: What is ManagedInterface
Date Mon, 09 Mar 2009 18:09:04 GMT

Thanks Craig,
Yes it reduces the redundant code. But I was thinking of a great idea behind
that which may leads me to a revolution in my application :)



Craig L Russell wrote:
> 
> Hi is_,
> 
> On Mar 9, 2009, at 6:45 AM, is_maximum wrote:
> 
>>
>> Hi
>>
>> Can anyone explain what is the ManagedInterface good for? What  
>> benefit would
>> achieve if we define all of our entities as interfaces?
> 
> If your entities are pure data (no behavior) then defining them as  
> interfaces reduces mindless code generation for the implementation of  
> get and set methods. All you do is declare the methods and OpenJPA  
> does the rest.
> 
> Craig
>>
>>
>> thanks
>> -- 
>> View this message in context:
>> http://n2.nabble.com/What-is-ManagedInterface-tp2449023p2449023.html
>> Sent from the OpenJPA Users mailing list archive at Nabble.com.
>>
> 
> Craig L Russell
> Architect, Sun Java Enterprise System http://db.apache.org/jdo
> 408 276-5638 mailto:Craig.Russell@sun.com
> P.S. A good JDO? O, Gasp!
> 
> 
>  
> 

-- 
View this message in context: http://n2.nabble.com/What-is-ManagedInterface-tp2449023p2450634.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.


Mime
View raw message