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

MOXy JAXB: how to map several XML tag elements to the same JAVA bean property

I am trying to unmarshall an XML file using MOXy JAXB. I have a set of classes, already generated, and I am using Xpath to map every XML element I need into my model. I have an XML file like this:
rocotocloc
  • 418
  • 6
  • 19
1
vote
1 answer

Undefined Tag in xml generated by MOXy

I have a JPA entity class with jpa annotations but without jaxb annotations: @Entity public class Category extends EntityObject { @Id private long id; // getter setter and stuff } Everything for jaxb is configured in an external xml…
Laures
  • 5,389
  • 11
  • 50
  • 76
1
vote
5 answers

how to start from "0" an UNSIGNED AUTO_INCREMENT field?

I have the following tables : wherein idclient is unsigned auto_increment. code of the Client entity: import java.io.Serializable; import java.util.List; import javax.persistence.*; import javax.xml.bind.annotation.XmlRootElement; import…
Marwen Trabelsi
  • 4,167
  • 8
  • 39
  • 80
1
vote
1 answer

How to add custom (user defined) properties to entities with EclipseLink?

I'd like to add user-defined custom fields to an existing entity in EclipseLink. For performance reasons, I want them to be stored directly in the entity's table, and I also want them to be "first class citizens", i.e. usable in queries. From an…
Jochen
  • 7,270
  • 5
  • 24
  • 32
1
vote
0 answers

JPA static weaving throws exception

In order to improve the performance of my app I am trying to use static weaving. I use eclipelink/tomcat. I get the following error when I access my service: java.lang.NullPointerException at java.lang.Class.isAssignableFrom(Native Method) …
Mike
  • 113
  • 1
  • 3
  • 10
1
vote
1 answer

classcast exception in JPA while saving images to the database

I am facing some issues when I write images to the database using JPA. I am getting below classcastexception. I have attached the code as well. [EL Warning]: 2012-03-12 12:02:58.757--UnitOfWork(23191477)--java.lang.ClassCastException:…
user414967
  • 5,225
  • 10
  • 40
  • 61
1
vote
1 answer

JAXB/MOXy - afterUnmarshal() appears to be called inconsistently

I'm having trouble where the afterUnmarshal() methods on my classes are not called if the class is a member of a collection. Beyond declaring the method on a class which is created via unmarshalling, is there any other steps I'm required to perform?…
Marty Pitt
  • 28,822
  • 36
  • 122
  • 195
1
vote
1 answer

eclipselink moxy xpath - selecting all child elements of the current node or all elements in a document with a particular name

i have this xpath defined for moxy in a jaxb class @XmlPath("child::*/REG") public List entries; but it won't unmarshal the xml document correctly. the List variable called entries is empty. i've also tried @XmlPath("*/REG") public List…
iou1
  • 43
  • 7
1
vote
1 answer

OSGi - running outside eclipse

I have been working on getting my OSGi application to run outside eclipse. It has certainly wasn't as easy as I thought out would be certainly not just a case of running java -jar org.eclipse.osgi_3.7.1.jar and installing the plugins. I'm hoping…
Kris
  • 963
  • 1
  • 13
  • 22
1
vote
2 answers

Is there anyway to edit the actual theme of the Eclipse IDE?

I'm not talking about the themes we can easily import and edit the textpad and code coloring with. What I'm wondering is just like the firefox themes where the frame of the window and buttons can change colors. Is there a theme option for the…
Pumphouse
  • 2,013
  • 17
  • 26
1
vote
2 answers

JPQL: SIZE function causing strange exceptions on EclipseLink

I'm porting from Hibernate. What's wrong with SIZE function in the JPQL statement (assuming the mappings are correct)?: SELECT NEW de.poyry.pqgenerator.view.PqListItem( pq.id, pq.name, pq.submissionDate, pe.firstName, pe.lastName, …
Kawu
  • 13,647
  • 34
  • 123
  • 195
1
vote
1 answer

Setting bounds for a JPA merge()

I'm working on code that allows an object graph to be migrated from one database to another. The object graph represents configuration, we're essentially moving configuration from a staging environment to a production environment. The graph is…
Royce
  • 532
  • 3
  • 11
1
vote
2 answers

JPA 2 CriteriaQuery order by index

I have an Entity with a List contained in it. The collection has an @OrderColumn. I'd like to get all the EntityRevisions for an Entity ordered by their index. I can do this with the following query: SELECT er FROM Entity e JOIN…
Brian Repko
  • 326
  • 2
  • 9
1
vote
1 answer

JPA createEntityManagerFactory "Unknown Source" error (non-J2EE)

I can't find what's wrong: many people seem to have issues with creating a EntityManagerFactory using the PU name. But I've checked all the suggestions, and none helped so far. I'm trying to build my first JavaFX2 app. It is a small dictionary…
Lúthien
  • 143
  • 1
  • 4
  • 14
1
vote
1 answer

EclipseLink QueryException without cache

I turned off the EclipseLink cache because I'm modifying data externally and don't want the hassle of having to manually refresh everything. Apparently, this is the correct way to switch off the cache in persistence.xml to avoid object identity…
Steve
  • 8,066
  • 11
  • 70
  • 112
1 2 3
99
100