-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: [Shards] Shards + JPA + Seam ?
PostPosted: Mon Aug 13, 2007 10:30 am 
Newbie

Joined: Mon Oct 24, 2005 2:19 pm
Posts: 10
Is it possible at all?
Does the recently implemented support for Hibernate annotations include JPA annotations?
Any expected side effects with seam managed persistence context?

How sharp is the bleeding edge - how much will it probably hurt ?
;-)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 1:41 am 
Contributor
Contributor

Joined: Fri Feb 11, 2005 8:15 pm
Posts: 31
The amount you'll bleed depends entirely on how, um, exotic your use of Query is. The Shards implementation of Query is fairly rudimentary. If you just want basic predicate support you'll be fine, but if you need to do any sort of aggregation (sum, avg, etc), you're not going to get the right answer. Critieria support is much better, but Criteria isn't part of JPA....

So, if you're fine with rudimentary Query support you'll still need to write a few adapter classes to make the ShardedSessionFactory available via JPA. I went halfway with it a couple months ago and it wasn't that bad (got distracted, never finished), and I didn't even know anything about JPA. If you're already familiar with the API it shouldn't take you long to get it together.

Let me know if I can be of assistance.

Max


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 15, 2007 9:51 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The support however covers JPA annotations as well as Hibernate extension annotations

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 20, 2009 6:02 am 
Newbie

Joined: Fri Mar 20, 2009 5:49 am
Posts: 1
gmax wrote:
So, if you're fine with rudimentary Query support you'll still need to write a few adapter classes to make the ShardedSessionFactory available via JPA. I went halfway with it a couple months ago and it wasn't that bad (got distracted, never finished), and I didn't even know anything about JPA. If you're already familiar with the API it shouldn't take you long to get it together.

Let me know if I can be of assistance.

Max


Hi I am interested in pursuing this integration. I can do away with Query usage, using Criteria API instead which, it sounds like, is usable.

Can I take a look at your source? Thanks!


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.