glassfish « Eclipse « JPA Q&A





1. JPA behaviour    stackoverflow.com

I have some trouble understanding a JPA behaviour. Mabye someone could give me a hint. Situation: Product entity:

@Entity
public class Product implements Serializable {
...
@OneToMany(mappedBy="product", fetch=FetchType.EAGER)
private List<ProductResource> productResources = new ArrayList<ProductResource>();
....
public List<ProductResource> getProductResources() {
  ...

2. JPA Entity Manger Factory injection fails (JPA 2, Eclipselink, J2EE 6)    stackoverflow.com

I am trying to get a small sample web app up and running but I have run into a problem injecting the Entity Manager Factory. My persistence.xml is as follows;

<persistence version="2.0" xmlns=" ...

3. JPA stops working after redeploy in glassfish    stackoverflow.com

Using oracle xe with glassfish and eclipselink. Problems with persisting objects arise. After fresh restart of glassfish app works ok. If app is recompiled and redeployed via admin interface. Persisting objects ...

4. Glassfish Eclipselink an Hibernate    coderanch.com

I am using Glassfish v3 with Apache Derby 10.6.1 (Network Server Mode) I am trying to deploy a sample web application (Beginnig Java EE 6 platform with Glassfish3, chapter 10) with EJBs and Entities. persistence.xml: org.eclipse.persistence.jpa.PersistenceProvider entities.Book