-->
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.  [ 1 post ] 
Author Message
 Post subject: More known risks of mixing JPA with Hibernate Session?
PostPosted: Mon Apr 11, 2011 2:42 am 
Beginner
Beginner

Joined: Tue May 11, 2004 12:20 am
Posts: 33
Hi,

Several months ago we've taken a decision to use JPA annotations, with Hibernate Session (as opposed to Entity Manager).
We read that it's a valid approach, and we liked the idea (we like Hibernate Session because of HQL and because we already have infrastructure code for it; but we wanted to try out JPA annotations).

Now I see this warning for Cascade Types:
http://stackoverflow.com/questions/4540 ... -cascading
It got me worried... I don't mind about this single oddity (we use Cascade.ALL anyway), but I'm worried it's a general indication that this combination is not often used, and thus doesn't get much testing.
Which might yield additional surprises, next time I get into a corner case, like those "Polymorphic type, that is lazily loaded, and flushed at some unusual point...".

So I'd appreciate input from actual field experience - is this combination (JPA + Session) mature enough for real life production applications?
Or is it one of those things that only look nice on theory?
(Of course no offense for the wonderful Hibernate team that does such great work:) it's totally acceptable to say "we don't test this combination", I'd just like to know).


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

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.