Questions tagged [eclipselink]

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

EclipseLink delivers a comprehensive open-source Java persistence solution. EclipseLink focuses on standards (JPA, JAXB, SDO) with advanced features, performance and scalability for enterprise software developers across data sources, formats, and containers.

5055 questions
2
votes
3 answers

XML Insert/Replacement scenario: JAXB (EclipseLink MOXy?) vs. JDOM vs.?

Suppose I have a very simple input exmaple XML file as follows I would like to modify the xml structure by inserting additional elements anywhere in the original structure, or replace an…
hansi
  • 2,278
  • 6
  • 34
  • 42
2
votes
1 answer

after/before (Un)Marshal event fires twice and for xml only

A simple class, that is being marshalled for output: @XmlRootElement public class Foobar { // ... void beforeMarshal(Marshaller m) { System.out.println("beforeMarshal fired"); } } The JAX-RS is also very simple: @GET public…
Imperative
  • 3,138
  • 2
  • 25
  • 40
2
votes
1 answer

Use of Multiple Inheritance in EclipseLink MOXy

I'm trying to use spring (@Autowire annotation into Jaxb Model class) ..... @XmlAttribute(name = "object-id") @XmlSchemaType(name = "positiveInteger") protected BigInteger objectId; @XmlTransient @Autowired MediationCacheManager…
user2078222
  • 135
  • 10
2
votes
2 answers

Why does JPA mark objects as dirty even if the values did not change?

I'm working on an application which sometimes calls setters on JPA managed entities. Why does JPA mark these objects as dirty even if the values didn't change? For example I have an object, which has a child object. I can call…
Freiheit
  • 8,408
  • 6
  • 59
  • 101
2
votes
1 answer

EntityManager.merge() is not updating the database

I am trying to update the user_info table with the new password using EntityManager.merge(), but it is not getting committed. Below is my code: app-cofig.xml:
Jasir
  • 21
  • 1
  • 3
2
votes
3 answers

PersistenceUnitInfo implementation in EclipseLink

EntityManagerFactory can be created without a persistence unit xml using org.eclipse.persistence.jpa.PersistenceProvider { public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, …
user225928
  • 75
  • 1
  • 5
2
votes
0 answers

How to generate JPA metamodel to another module

In my 3 layer maven application (enterprise application archetype with an extra module for domain-related classes) I'd like to keep the domain module as clean as possible. My persistence.xml, for example, is in the ejb module. Following that train…
synti
  • 67
  • 7
2
votes
0 answers

JPA persistence.xml META-INF placement folder

I currently have my persistence.xml located in src/main/resources/META-INF/persistence.xml. Also I am using eclipselink 2.4 as my JPA 2.0 implementation. After publishing to the server and trying to run the app in the browser I get the following…
Padawan
  • 770
  • 1
  • 8
  • 18
2
votes
0 answers

NoSuchMethodException on eclipselink

I'm developing a javaEE project using Glassfish and EclipseLink. ALthough, when i run my app i get the following exceptions: Exception [EclipseLink-60] (Eclipse Persistence Services - 2.0.1.v20100213-r6600):…
2
votes
0 answers

Multiple JPA Persistences loading issue in JBOSS 5

I have two projects "ProjectA.war" and "ProjectB.war". In both projects, i am using Oracle 11g, JPA2 with EclipseLink 2.4.2. and i am using JBOSS 5.1.0 GA application server. Both have different persistence.xml files with different persistence-unit…
SRIHARIRAO M
  • 103
  • 1
  • 18
2
votes
2 answers

Create Entity Manager Factory without persistence.xml

Is there a way to create the EntityManagerFactory without a persistence unit defined? Can you give all the required properties to create an entity manager factory? I need to create the EntityManagerFactory from the user's specified values at…
Gaurav Kumar
  • 323
  • 2
  • 4
  • 10
2
votes
1 answer

Eclipselink Batch vs fetch-join reading in Fetch Groups is this possible?

I have a situation whereby I would like to create a query against an entity using EclipsLink JPA, I require 5 fields from this entity of which it has many. 2 of those fields are joined OneToMany relationships. I only require 2 primitive fields from…
mtallyn
  • 89
  • 1
  • 1
  • 8
2
votes
1 answer

eclipselink jpa operator details

I am using 2.4.1 eclipse link and oracle. This document lists several operator, which can be used while writing queries. There is one example as well. I want to use dateDifference function. Where can I find the details of the parameters to be…
phoneynk
  • 110
  • 7
2
votes
1 answer

Connecting JSF Web Application deployed on Glassfish to a local MySQL database

I have glassfish running on the same server that the MySQL database is running on. When I attempt to deploy the web application via the admin console, I get the following error: Error occurred during deployment: Exception while preparing the app :…
2
votes
2 answers

EclipseLink - bidirectional OneToMany relation

Let's say I have two entities: @Entity public class Customer implements Serializable { ... @OneToMany(cascade=ALL, mappedBy="customer") public Set getOrders() { return orders; } ... } @Entity public class Order…
user1315305
  • 1,329
  • 2
  • 11
  • 20