aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Eclipse and JPA with Dynamic Web Project Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Eclipse and JPA with Dynamic Web Project" Watch "Eclipse and JPA with Dynamic Web Project" New topic
Author

Eclipse and JPA with Dynamic Web Project

Jose Ayerdis
Ranch Hand

Joined: Sep 14, 2008
Posts: 30
I've being having the difficulty of having to create a project for my JPA structure and a project for my web application is there a way to enjoy both world without having to make a Project for each one of them in eclipse.
Rajesh Pitty
Greenhorn

Joined: Jan 27, 2005
Posts: 9
try this in Galileo

right click on your web project -> select properties-> select project facets->select java persistence configure and add Java Persistence API to your project

Rajesh
www.rajeshpg.com/blog


Rajesh<br /><a href="http://www.rajeshpg.com" target="_blank" rel="nofollow">www.rajeshpg.com</a>
Petr Dotov
Greenhorn

Joined: Feb 08, 2010
Posts: 2
@Rajesh Pitty Thanks! )
Jose Campana
Ranch Hand

Joined: May 28, 2007
Posts: 339
Hello, I've just read this thread, and I was having the same problem. So I must say thanks.

However I have a question, From this point on inside the Web application can I use the Entity Manager ? let's say from a Servlet for example?

I'm trying to do it using EclipseLink is it possible to do it ?

Best Regards,

Jose
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Eclipse and JPA with Dynamic Web Project
 
Similar Threads
Using Stateless EJB3s in a Struts 2 application
How to add a JPA project to Web Project?
Hibernate JPA - java.lang.NoClassDefFoundError: javax/persistence/Persistence
EJB web project in Eclipse
log4j.properties file for a project with multiple modules