openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig L Russell <Craig.Russ...@Sun.COM>
Subject Re: What is ManagedInterface
Date Mon, 09 Mar 2009 16:37:50 GMT
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!


Mime
View raw message