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

JAXBContext handling of @XmlValue

I've come across this problem in my code: when all fields except for the one declared @XmlValue are null, MOXy marshals out the field as if it were the sole value of the whole object. I realize this may be a purposeful implementation but I'm…
Milo Hou
  • 239
  • 2
  • 17
2
votes
1 answer

JSF DataTable displaying objects instead of real values from MySqlDB table UserGroup

Can someone please help me in resolving this. I am trying to create a page for Display, Edit and delete data from UserGroup (a MySQL DB table) with below structure in a JSF2.0 (xhtml page) . The problem I'm having is with the data actually getting…
sup
  • 105
  • 1
  • 4
  • 17
2
votes
1 answer

Persist a List with order and duplicates in JPA/EclipseLink

I have basically two Entities Entity1 and Entity2. Entity1 contains this bit of Code: @OneToMany(cascade=CascadeType.PERSIST) @OrderColumn List e = new LinkedList(); and Entity2 contains some stuff, but nothing relevant. I want…
Simiil
  • 2,281
  • 1
  • 22
  • 32
2
votes
3 answers

JPA 2.0 vs. javax.persistence.sharedCache.mode

Using Spring 3.2.0, Eclipselink 2.5.0-M9 When persistence.xml contains: ENABLE_SELECTIVE Then if I examine the EntityManagerFactory during runtime, via emf.getProperties(), this property is not set. However,…
Nayan Hajratwala
  • 350
  • 1
  • 4
  • 11
2
votes
2 answers

JPA - Changing a reference to an existing (but detached) entity causes a duplicate to be inserted

I have two entities with a uni-directional many-to-one relationship: Many Bars have one Foo When I try to update a managed Bar instance by changing its Foo to an existing detached Foo instance, the flush to the DB fails. I use facades (FooFacade &…
Ryan Bennetts
  • 1,143
  • 2
  • 16
  • 29
2
votes
2 answers

JPQL LIKE expression with attributes of target entity in a null valued relationship

I have an entity named Item with relationship to another entity Category which can be null. The two entities are as follows: Item @Entity public class Item { @Id private String id; private String name; private String code; …
Naveed S
  • 5,106
  • 4
  • 34
  • 52
2
votes
1 answer

Eclipselink - @CascadeOnDelete doesn't work on @OneToOne relations

I have two relations in my class: @OneToOne(mappedBy = "poi", cascade = { CascadeType.ALL }) @CascadeOnDelete protected PoiDescription description; @OneToMany(mappedBy = "poi", cascade = { CascadeType.ALL }) @CascadeOnDelete protected…
Daniel
  • 21
  • 1
2
votes
2 answers

SQLSyntaxErrorException on creating tables in Apache Derby using JPA

I'm using Eclipselink as JPA provider and Embedded Apache Derby database. When I run the project, I get exception as follows: Internal Exception: java.sql.SQLSyntaxErrorException: Syntax error: Encountered "NOT" at line 1, column 31. Error Code:…
Naveed S
  • 5,106
  • 4
  • 34
  • 52
2
votes
1 answer

jaxbcontext.newinstance() with eclipselink MOXy hangs

disclaimer: I'm incredibly amateur at all of this I'm trying to get the project I'm working on to output JSON in addition the XML. Originally the prior method to do so involved a method that took in an argument of Element and recursively inserted…
Milo Hou
  • 239
  • 2
  • 17
2
votes
3 answers

How do I get EclipseLink JAXB (MOXy) to not display namespaces in XML output

I'm trying to move from the JAXB reference implementation to EclipseLink JAXB (MOXy) because it appears to solve JAXB outputting invalid XML when data contains non-displayable chars but I have a problem with it displaying namespace tags. This is how…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
2
votes
1 answer

EclipseLink "SQL string is not Query"

I'm running EclipseLink on WLS 10.3.5. I'm trying to use @NamedNativeQuery annotation, but all the SQL I try causes an "Internal Exception: java.sql.SQLException: SQL string is not Query" exception. Even a simple SELECT * FROM TABLE causes that…
retrodev
  • 2,323
  • 6
  • 24
  • 48
2
votes
1 answer

moxy cxf spring inheritance

i'm having a stack trace trying to use inheritance with moxy, somebody can give some advice. Bellow some abstract of the java code and the stack error. Thanks in advance!!! Bussines objects public abstract class ContactInfo { } import…
sjdms265
  • 157
  • 2
  • 9
2
votes
1 answer

What is the proper way to have a user-authored EclipseLink DatabasePlatform subclass picked up?

The Informix support in EclipseLink 2.3.2 (and probably later) has a fairly serious bug in it where outer joins are not performed properly. I'd like to subclass the EclipseLink InformixPlatform class to work around this. For various reasons, I…
Laird Nelson
  • 15,321
  • 19
  • 73
  • 127
2
votes
2 answers

Unable to create DynamicJAXBContext - Problems bootstrapping from GML schemas

Updating this post with my latest examples based on responses below. I am attempting to use MOXY to create a DynamicJAXBContext using a simple schema which uses GML 2.1.2 schemas (which imports xlink). It appears that moxy is having issues…
Jason
  • 21
  • 3
2
votes
1 answer

How to get a detached object from JPA

In my application I need most objects fetched in detached mode (fetched with the find API). I'm wondering if there is a way to ask a detached object from the JPA provider and save the extra call to detach() API. In additional I would expect the…
Avner Levy
  • 6,601
  • 9
  • 53
  • 92