First of all thanks for answering.
gmax wrote:
1/ Whether or not Shards can run using 3.1 depends entirely on how the Session, SessionFactory, Criteria, and Query interfaces changed between 3.1 and 3.2. It's been awhile, but I believe there were a couple of changes. If they were additive, you're fine. If signatures of existing methods changed, you're out of luck (unless you want to tweak the code and build your own version). There's nothing in the Shards code that depends on 3.1 versus 3.2.
I will check this and report back.
gmax wrote:
2/ I need to confirm, but I'm pretty sure I fixed this in beta2 and forgot to update the docs. Dumb dumb dumb. I'll verify and get back to you. But yes, unsaved value is fine, if you like that sort of thing (I don't :-)
Thanks for the update. It is not a matter of my preference (I don't use those either), but once we can make it work why not :-).
gmax wrote:
3/ The only methods that are deprecated in our impl are deprecated on the interfaces themselves. We need to provide implementations of those interface methods to get them to compile, but seeing as Hibernate Core intends to do away with them at some point we thought it was reasonable to not provide a sharded implementation in the first place.
I guess I need to be more explicit on this. I may be missing something but I see that even if ShardedSessionImpl implements org.hibernate.Session it also contains the deprecated methods from org.hibernate.classic.Session. So what's the relationship there?
gmax wrote:
4/ Yeah, we should definitely do what you're suggesting, probably along with:
session.createCriteria(Class<?> class, Set<Integer> shardIds);
Yep, that's it. This looks good.
As I mentioned in the other thread, I will have a couple of more questions (mostly about the missing features ;-) and possible approaches). But this is it for now.
many thanks,
./alex
--
.w( the_mindstorm )p.
_____________________________________
Alexandru Popescu, OSS Evangelist
TestNG/Groovy/AspectJ/WebWork/more...
Information Queue ~
www.InfoQ.com