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
1 answer

Parsing Mixed Markup with MOXy, maybe using Transformers

Using MOXy 2.3.1, but could upgrade if it would help. I have the following XML: text content mixed with tags Which I would like to be stored in a String field containing: text content mixed with tags I've…
mikeapr4
  • 2,830
  • 16
  • 24
2
votes
3 answers

Fetch all collections eagerly in JPA

Is it possible to fetch all collections in an entity hierarchy eagerly in a particular query only? For example, entity Department has a list of entity Employee. Employee has a list of entity Address and a list of entity Credentials. Department has…
Naveed S
  • 5,106
  • 4
  • 34
  • 52
2
votes
1 answer

How to format Json output

Please help me how to get JSON output as below: { "_costMethod": "Average", "fundingDate": 2008-10-02, "fundingAmount": 2510959.95 } Instead of: { "@type": "sma", "costMethod": "Average", "fundingDate": "2008-10-02", …
2
votes
1 answer

Compatiblity Issue of asm 3.1 and org.eclipse.persistence.asm-2.3.2.jar (jersey-moxy 1.15)

A similar problem as in Compatibility Issue of ASM 3.1 and HIbernate and JAX-RS seems to have hit me: my Jersey / JPA based rest application which also uses jersey-moxy (version 1.15 of jersey) throws an error: Caused by:…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
2
votes
1 answer

MOXy NoMessageBodyWriterFoundFailure

I'm trying to use EclipseLink MOXy as my JAXB Provider, but I'm still having some problems. I've already put a jaxb.properties file in the same package as the Error class. Nonetheless, I still get following error, when calling my webservice: Error…
Felipe S
  • 21
  • 1
2
votes
1 answer

Errors in XML schema from MOXy

I'm trying to generate an XML schema using JAXBContext.generateSchema(..). My class looks something like this: @XmlRootElement @XmlAccessorType( XmlAccessType.FIELD ) class Person { @XmlAttribute public String name; @XmlAnyAttribute public…
mortenoh
  • 255
  • 3
  • 17
2
votes
1 answer

Same Object With Different Mappings Depending on Context (MOXy)

I'm using EclipseLink MOXy as my JAXB (JSR-222) provider and need some help with my mapping file to marshal my classes into XML. I'm using an external file for my mapping. I have two types of transactions: A and B. Both contain a header object (same…
Marcio J
  • 129
  • 1
  • 8
2
votes
1 answer

How can I prevent Eclipselink from consuming all memory with the cache?

My application extracts large amounts of geometry data. I use Eclipselink 2.4.1 to persist that data in a MySQL database. The application works batch-style, i.e. I gather a set of data, then persist it, and continue with the next set, persist it and…
Valentin
  • 7,874
  • 5
  • 33
  • 38
2
votes
1 answer

avoiding distinct keyword in batch query

Using Eclipselink 2.4.1, I'm trying to avoid the "distinct" keyword from appearing in batch queries. Documentation suggests that when using batch type EXISTS the distinct keyword isn't used, however in my experience it's used in all cases when…
cogitos
  • 336
  • 1
  • 4
2
votes
1 answer

JPA SortedMap mapping - avoid two columns with keys

I have two classes, CalculatedValue and Price. Price has map of CalculatedValue. Each CalculableValue instance has name, value and couple of other fields. Here is mapping I use to describe a dependency between Price and the CV: @OneToMany( …
Val
  • 381
  • 1
  • 3
  • 11
2
votes
1 answer

Ignore SuperClass

I'm using a class that extends a JavaFx's component public class MyClass extends Pane {} I want to serialize that class only and not the Pane superclass. As Jaxb does not support it, I'm using Eclipselink MOXy to achieve…
Badisi
  • 469
  • 1
  • 3
  • 12
2
votes
2 answers

JPA (EclipseLink) persit one-to-many relationship without Cascade.PERSIST

I have two entities. Sports: @Entity public class Sports implements Serializable { private static final long serialVersionUID = 1L; @Id @GeneratedValue(strategy = GenerationType.AUTO) private Long id; @Column(name =…
paralen
  • 117
  • 6
2
votes
1 answer

Unneccessary join in jpa subquery

I have following jpa criteria query: CriteriaBuilder cb = em.getCriteriaBuilder(); CriteriaQuery cq = cb.createQuery(Company.class); Root root = cq.from(Company.class); cq.select(root); Subquery sq =…
Christian
  • 3,503
  • 1
  • 26
  • 47
2
votes
1 answer

java.lang.NoClassDefFoundError: com/mongodb/ServerAddress

i have an jee6 application with eclipselink and mongodb. i use the nosql-extension org.eclipse.persistence.nosql when i deploy my application on a local glassfish instance everything works fine. when i deply the application on remote glassfish i get…
2
votes
1 answer

JPA deleting bidirectional association from inverse side

In my domain model there are a lot of bidirectional associations (both OneToMany and ManyToMany) I've read this article and made all my associations on the basis of the sample pattern. (the ManyToMany associations has a two-sided addXY methods,…
krstf
  • 627
  • 7
  • 25