[ovirt-devel] JPA in oVirt

Roy Golan rgolan at redhat.com
Tue Apr 21 12:15:53 UTC 2015


On 04/21/2015 01:43 PM, Liran Zelkha wrote:
> Hi
>
> After a very long development cycle, we have finally introduced CDI 
> and JPA technologies into oVirt.
> This means that in the next few month you'll see more and more of our 
> stored procedures replaced with JPA code, which will allow us to have 
> easier entity mapping and enjoy performance boost with caching.
>

kudos Liran, the modernization of our code-base is a very important 
goal. Those aren't
just nice toys to play with.

> Some things to keep in mind:
> 1. When implementing a DAO class, please make sure to annotate it with 
> the @Named and @Singleton annotations.

note: this practice is temporary and it should be updated

> 2. The engine-daos.properties file is no longer needed, and is removed 
> from our code.
> 3. If you want to migrate your own DAO to work with JPA, please look 
> at the Bookmark, BookmarkDaoDbFacadeImpl and BookmarkDaoTest classes 
> (see patch https://gerrit.ovirt.org/#/c/33836/).
>
> There is a simple infrastructure that will allow you to do most of the 
> things you need quite easily. If something is missing - please drop me 
> an email to lzelkha at redhat.com <mailto:lzelkha at redhat.com> - I'll be 
> happy to assist.
>
> Thanks for everyone who took part in this effort - Oved, Moti, Roy, 
> Yevgeny and everyone else.
>
>
> _______________________________________________
> Devel mailing list
> Devel at ovirt.org
> http://lists.ovirt.org/mailman/listinfo/devel


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/devel/attachments/20150421/eb988b13/attachment-0001.html>


More information about the Devel mailing list