wood burning stoves*
The moose likes Object Relational Mapping and the fly likes Deploying Hibernate with JPA Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Deploying Hibernate with JPA" Watch "Deploying Hibernate with JPA" New topic
Author

Deploying Hibernate with JPA

Amar Deep Singh Chaudhary
Ranch Hand

Joined: Dec 26, 2006
Posts: 49
Hi
i am using Hibernate with JPA annotations, and also using Spring framework, do i deploy this application on Tomacat server or i need Application server like jBoss.
one more question should i use Hibernate entity manger to run queries or should i use session factory to create queries and running them, hibernate queries are more good or jpa queryies are more powefull any one can suggest me, please also provide the details or example that how i can use hibernate with jpa with best implementation and use of both the api's. how we will manage the transactions in that case ?

Thanks in advance.

With Regards
Amar Deep Singh
http://amardeep.100webspace.net


"A thinking mind never dies"
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


i am using Hibernate with JPA annotations, and also using Spring framework, do i deploy this application on Tomacat server or i need Application server like jBoss.

Does your application need a servlet container or an application server?


one more question should i use Hibernate entity manger to run queries or should i use session factory to create queries and running them, hibernate queries are more good or jpa queryies are more powefull any one can suggest me,

If you intend to use JPA you should not use Hibernate specific functionality.


how we will manage the transactions in that case ?

Which type of transaction management are you intending to use? Resource local or JTA?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Amar Deep Singh Chaudhary
Ranch Hand

Joined: Dec 26, 2006
Posts: 49
1. my application does't need servlet container .
2. which approach is better using JPA or Using Hibernate.
3. I want to use JTA Transactions

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Deploying Hibernate with JPA
 
Similar Threads
Newbie Question: What's the relationship between JPA and EJB?
JPA Query and HQL
Difference between Hibernate and JPA
Hibernate + Multi User Swing App + JBoss
confused with JAP,Hibernate