Il giorno 26/nov/2012, alle ore 14.46, Pinaki Poddar ha scritto:
> Hello Fabio,
> Look for the following findTargets() method in DistributedStoreQuery.java
>> List<SliceStoreManager> targets = findTargets();
>
> The query uses this method to narrow the slices to a subset.
>
> The same technique on delete() and update() should work. If the
> delete()/update() not calling them, they should.
>
> From a usage point of view, the same mechanics of
>
> String hint = "openjpa.hint.slice.Target";
> Query query = em.createQuery("SELECT p FROM PObject")
> .setHint(hint, new String[]{"One",
> "Two"});
>
>
> On a broader note:
>> I'm going to add Microsoft Windows Azure SQL Database support into
> OpenJPA.
>> Since for my purpose I decided to start from slice I have to customize
> some slice behavior.
>
> Liked the idea of using OpenJPA/Slice in Azure cloud environment. Though
> Slice was developed in a pre-cloud era -- its primary motivation was to
> address data distribution. But I believe Slice can be easily used in a
> multi-tenancy scenarios in a cloud environment. As you work through Slice
> and Azure, please keep posting your findings (and patches).
> Good luck with your project :)
>
Hi Pinaki,
you can have more info about the project at
https://github.com/Tirasa/OpenJPA-Azure.
Best regards,
F.
>
>
>
>
> -----
> Pinaki Poddar
> Chair, Apache OpenJPA Project
> --
> View this message in context:
> http://openjpa.208410.n2.nabble.com/working-with-slices-tp7581693p7581928.html
> Sent from the OpenJPA Developers mailing list archive at Nabble.com.