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
3
votes
2 answers

XmlDiscriminatorNode, XmlSchema namespace, and elementFormDefault=QUALIFIED

I'm using eclipselink-2.3.2. My package is annotated: @XmlSchema(namespace = "http://example.com/namespace", elementFormDefault = XmlNsForm.QUALIFIED) I have the following classes: @XmlRootElement public class Box { private A item; // and…
Nick Spacek
  • 4,717
  • 4
  • 39
  • 42
3
votes
1 answer

How to exclude one table from drop-and-create-tables with Ecliselink?

I use Eclipselink 2.3.2 and want to know, if there is an way to exclude a single table/entity to be excluded from ddl-generation strategy drop-and-create-tables? I need to preserve the content of this table, while all other tables should be droped…
Ralph
  • 118,862
  • 56
  • 287
  • 383
3
votes
1 answer

Named query when property is an object?

I would like to make this query in JPA: SELECT * FROM `happyDB`.`users` U WHERE U.party_as_user =1 AND U.party_party_id =2 This is working fine, but my problem is that I have Party only as an object, not as an id and I can't make it work. In the…
Sami
  • 2,311
  • 13
  • 46
  • 80
3
votes
0 answers

Missing class for indicator field value - EclipseLink exception

I am getting the follow error: Exception [EclipseLink-43] (Eclipse Persistence Services - 2.3.2.v20111125-r10461): org.eclipse.persistence.exceptions.DescriptorException Exception Description: Missing class for indicator field value…
Vítor Nóbrega
  • 1,219
  • 4
  • 26
  • 53
3
votes
0 answers

Is GlassFish redeploy supposed to work?

This is with GF 3.1.1 build 12. I have a JSF 2 web application that uses EclipseLink 2.3.0 as the back end JPA provider. You can see the deployment here. When I use the admin console to redeploy, it uploads the WAR file just fine, then all hell…
AlanObject
  • 9,613
  • 19
  • 86
  • 142
3
votes
1 answer

Troubles with JPA Query using Timestamp

my problem is a bit similar to this: I want to retrieve rows whose date doesn't has more than 20 minutes compared with the current date time, my source code: EntityManagerFactory emf=Persistence.createEntityManagerFactory("JavaApplication21PU"); …
Marwen Trabelsi
  • 4,167
  • 8
  • 39
  • 80
2
votes
1 answer

moxy: what is the equivalent of RuntimeTypeInfoSet

In jaxb-impl, I can get a RuntimeTypeInfoSet object which can be used to map from the xml metadata to the appropriate java reflection data. What is the equivalent for moxy. UPDATE: my use case is finding a property that maps to an element name. I…
IttayD
  • 28,271
  • 28
  • 124
  • 178
2
votes
1 answer

Unit Test code using wrong persistence unit

In the midst of learning Maven created a simple JPA project (Java Persistence 1.0.2 with EclipseLink implementation 2.0.2). This is an Application Managed environment. So I manually control EntityManager's life cycle. The persistence.xml file used…
Amir Keibi
  • 1,991
  • 28
  • 45
2
votes
1 answer

JAXB / EclipseLink : unmap a type dynamically

I have a service which should be able to deliver "user profiles" under different level of details or different verbosity modes. These user profiles are synchronized in a database with JPA2 and all is working fine. Using MOXy (EclipseLink) I also…
njames
  • 502
  • 1
  • 5
  • 17
2
votes
1 answer

How to reconnect to a persistence unit after an oracle Database failure

When I unfortunately need to restart my Oracle database (after a failure, or for any reason). My persistence unit cannot reconnect to the database (after it is up again). Here is the error log : …
Ndewer
  • 23
  • 6
2
votes
1 answer

DescriptorException "Missing class indicator field from database row" exception when unmarshalling XML using EclipseLink JAXB (MOXy)

I'm having a problem using Moxy to marshal/unmarshal Salesforce outbound message XMLs. The exception that I'm getting is: javax.xml.bind.JAXBException - with linked exception: [Exception [EclipseLink-44] (Eclipse Persistence Services -…
ryanprayogo
  • 11,587
  • 11
  • 51
  • 66
2
votes
2 answers

Missing descriptor exception while using Eclipselink Expressionbuilder

I have an entity Person with fields String name and String designation. When I tried to query using Eclipselink ExpressionBuilder, as: Project project=new Project(); Login login=new DatabaseLogin(); login.setUserName("root"); …
Naveed S
  • 5,106
  • 4
  • 34
  • 52
2
votes
2 answers

Creating definitions programmatically in EclipseLink

I am trying to use EclipseLink in OSGi environment. What I want to do is, building a provider bundle that exposes EntityManager to other bundles. The problem is, entity classes can not be determined and written to persistence.xml file at compile…
koders
  • 5,654
  • 1
  • 25
  • 20
2
votes
2 answers

How to obtain size of BLOB without reading BLOB's content?

I want to show a list of file names read from a database and their sizes, but if I read the value of the blob the query is very slow. How I can calculate the size of the blob without reading it? I'm using EclipseLink.
2
votes
2 answers

EclipseLink JPA: remove and persist in the same transaction, constraint error

In my code I remove and persist objects in the same transaction: for (final GZAFixInterval actStat : actualStatus) { ... em.remove(actStat); ... } for (final Interval newInterval : newIntervals) { final GZAFixInterval…
gyorgyabraham
  • 2,550
  • 1
  • 28
  • 46